object StatusReply
- Source
- StatusReply.scala
- Alphabetic
- By Inheritance
- StatusReply
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
final
case class
ErrorMessage(errorMessage: String) extends RuntimeException with NoStackTrace with Product with Serializable
Carrier exception used for textual error descriptions.
Carrier exception used for textual error descriptions.
Not meant for usage outside of StatusReply.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
Ack: StatusReply[Done]
Scala API: A general purpose message for using as an Ack
-
def
ack(): StatusReply[Done]
Java API: A general purpose message for using as an Ack
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
error[T](exception: Throwable): StatusReply[T]
Java API: Create an error response with a user defined Throwable.
Java API: Create an error response with a user defined Throwable.
Prefer the string based error response over this one when possible to avoid tightly coupled logic across actors and passing internal failure details on to callers that can not do much to handle them.
For cases where types are needed to identify errors and behave differently enumerating them with a specific set of response messages may be a better alternative to encoding them as generic exceptions.
Also note that Akka does not contain pre-build serializers for arbitrary exceptions.
-
def
error[T](errorMessage: String): StatusReply[T]
Java API: Create an status response with a error message describing why the request was failed or denied.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
success[T](value: T): StatusReply[T]
Java API: Create a successful reply containing
value
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
object
Error
Scala API for creating and pattern matching an error response
Scala API for creating and pattern matching an error response
For example:
case StatusReply.Error(exception) => ...
-
object
Success
Scala API for creation and pattern matching a successful response.
Scala API for creation and pattern matching a successful response.
For example:
case StatusReply.Success(value: String) => ...