Class SafeErrorResult

java.lang.Object
de.kentoj.scrowlib.messaging.respose.SafeResult
de.kentoj.scrowlib.messaging.respose.SafeErrorResult

public final class SafeErrorResult extends SafeResult
  • Constructor Details

    • SafeErrorResult

      public SafeErrorResult(Throwable throwable)
  • Method Details

    • unwrap

      public org.bson.Document unwrap()
      Specified by:
      unwrap in class SafeResult
      Returns:
      the data stored in the SafeResult
    • toException

      public RuntimeException toException()
    • toDocument

      public org.bson.Document toDocument()
      Specified by:
      toDocument in class SafeResult
      Returns:
      the SafeResult as a Document for transit
    • getType

      public String getType()
    • getMessage

      public String getMessage()