Class

ch.waan.mcddpui.predef

ErrorHandlingCommandExecutor

Related Doc: package predef

Permalink

abstract class ErrorHandlingCommandExecutor[T] extends CommandExecutor[T]

A CommandExecutor with integrated exception handling.

This executor is backed by any arbitrary executor that does the actual operation. This executor serves as a wrapping layer that catches all exceptions thrown by the backing executor and passes them into a handling method.

T

the data structure the executor operates on

Version

1.1 (0.1.0), 2016-02-29

Since

MCDDPUI 0.1.0

Linear Supertypes
CommandExecutor[T], AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ErrorHandlingCommandExecutor
  2. CommandExecutor
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ErrorHandlingCommandExecutor(executor: CommandExecutor[T])

    Permalink

    creates a new executor instance

    creates a new executor instance

    executor

    the backing executor

Abstract Value Members

  1. abstract def handleException(ex: CommandExecutionException): Unit

    Permalink

    handles any CommandExecutionException thrown while executing any command.

    handles any CommandExecutionException thrown while executing any command.

    ex

    CommandExecutionException the exception to handle

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(c: ManagerCommand): Unit

    Permalink

    executes a ManagerCommand

    executes a ManagerCommand

    c

    the ManagerCommand to execute.

    Definition Classes
    ErrorHandlingCommandExecutorCommandExecutor
    Exceptions thrown

    ManagerCommandExecutionException if any exceptional case occurs while executing the command.

    NullPointerException if the implementation chooses to disallow null commands.

    Note

    The implementation may decide whether or not null commands should be allowed. If null commands are not allowed by the implementation, any invocation with a null command should result in a NullPointerException. If however an implementation decides to allow null commands, such commands should be ignored. It is recommended to ensure consistent null handling over all methods.

  5. def apply(c: MutationCommand[_ >: T, _ <: T]): Unit

    Permalink

    executes a MutationCommand

    executes a MutationCommand

    c

    the MutationCommand to execute.

    Definition Classes
    ErrorHandlingCommandExecutorCommandExecutor
    Exceptions thrown

    MutationCommandExecutionException if any exceptional case occurs while executing the command.

    NullPointerException if the implementation chooses to disallow null commands.

    Note

    The implementation may decide whether or not null commands should be allowed. If null commands are not allowed by the implementation, any invocation with a null command should result in a NullPointerException. If however an implementation decides to allow null commands, such commands should be ignored. It is recommended to ensure consistent null handling over all methods.

  6. def apply(c: ReadCommand[_ >: T]): Unit

    Permalink

    executes a ReadCommand

    executes a ReadCommand

    c

    the ReadCommand to execute.

    Definition Classes
    ErrorHandlingCommandExecutorCommandExecutor
    Exceptions thrown

    NullPointerException if the implementation chooses to disallow null commands.

    ReadCommandExecutionException if any exceptional case occurs while executing the command.

    Note

    The implementation may decide whether or not null commands should be allowed. If null commands are not allowed by the implementation, any invocation with a null command should result in a NullPointerException. If however an implementation decides to allow null commands, such commands should be ignored. It is recommended to ensure consistent null handling over all methods.

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  19. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from CommandExecutor[T]

Inherited from AnyRef

Inherited from Any

Ungrouped