Class

ch.awae.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
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ErrorHandlingCommandExecutor
  2. CommandExecutor
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  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. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ErrorHandlingCommandExecutor[T] to any2stringadd[ErrorHandlingCommandExecutor[T]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ErrorHandlingCommandExecutor[T], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ErrorHandlingCommandExecutor[T] to ArrowAssoc[ErrorHandlingCommandExecutor[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. 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.

  7. 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.

  8. 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.

  9. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def ensuring(cond: (ErrorHandlingCommandExecutor[T]) ⇒ Boolean, msg: ⇒ Any): ErrorHandlingCommandExecutor[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ErrorHandlingCommandExecutor[T] to Ensuring[ErrorHandlingCommandExecutor[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: (ErrorHandlingCommandExecutor[T]) ⇒ Boolean): ErrorHandlingCommandExecutor[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ErrorHandlingCommandExecutor[T] to Ensuring[ErrorHandlingCommandExecutor[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean, msg: ⇒ Any): ErrorHandlingCommandExecutor[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ErrorHandlingCommandExecutor[T] to Ensuring[ErrorHandlingCommandExecutor[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean): ErrorHandlingCommandExecutor[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ErrorHandlingCommandExecutor[T] to Ensuring[ErrorHandlingCommandExecutor[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ErrorHandlingCommandExecutor[T] to StringFormat[ErrorHandlingCommandExecutor[T]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  19. final def getClass(): Class[_]

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. def [B](y: B): (ErrorHandlingCommandExecutor[T], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ErrorHandlingCommandExecutor[T] to ArrowAssoc[ErrorHandlingCommandExecutor[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from CommandExecutor[T]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from ErrorHandlingCommandExecutor[T] to any2stringadd[ErrorHandlingCommandExecutor[T]]

Inherited by implicit conversion StringFormat from ErrorHandlingCommandExecutor[T] to StringFormat[ErrorHandlingCommandExecutor[T]]

Inherited by implicit conversion Ensuring from ErrorHandlingCommandExecutor[T] to Ensuring[ErrorHandlingCommandExecutor[T]]

Inherited by implicit conversion ArrowAssoc from ErrorHandlingCommandExecutor[T] to ArrowAssoc[ErrorHandlingCommandExecutor[T]]

Ungrouped