Packages

trait Errors extends AnyRef

Error responses. Note: these error responses work by throwing special exceptions that are caught by the framework. They are not designed to work outside the framework.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Errors
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def BadGateway(errorCode: String = null, msg: String = null, details: Option[JsValue] = None): Nothing

    Error out with a bad gateway error (502) response.

    Error out with a bad gateway error (502) response.

    Note: Only use this within a Rest Action, and not a general action.

  5. def BadRequest(errorCode: String = null, msg: String = null, details: Option[JsValue] = None): Nothing

    Error out with a BadRequest (400) response.

    Error out with a BadRequest (400) response.

    Note: Only use this within a Rest Action, and not a general action.

  6. def BadRequestT[T](errorCode: String = null, msg: String = null, details: Option[T] = None)(implicit format: OFormat[T]): Nothing

    Error out with a BadRequest (400) response.

    Error out with a BadRequest (400) response. Detail will be converted to a json object.

    Note: Only use this within a Rest Action, and not a general action.

  7. def Conflict(errorCode: String = null, msg: String = null, details: Option[JsValue] = None): Nothing

    Error out with a conflict (409) response.

    Error out with a conflict (409) response.

    Note: Only use this within a Rest Action, and not a general action.

  8. def Forbidden(errorCode: String = null, msg: String = null, details: Option[JsValue] = None): Nothing

    Error out with an Forbidden (403) response.

    Error out with an Forbidden (403) response.

    Note: Only use this within a Rest Action, and not a general action.

  9. def GatewayTimeout(errorCode: String = null, msg: String = null, details: Option[JsValue] = None): Nothing

    Error out with a gateway timeout (504) response.

    Error out with a gateway timeout (504) response.

    Note: Only use this within a Rest Action, and not a general action.

  10. def Gone(errorCode: String = null, msg: String = null, details: Option[JsValue] = None): Nothing

    Error out with an Gone (410) response.

    Error out with an Gone (410) response.

    Note: Only use this within a Rest Action, and not a general action.

  11. def InternalServerError(errorCode: String = null, msg: String = null, details: Option[JsValue] = None): Nothing

    Error out with an internal server error (500) response.

    Error out with an internal server error (500) response.

    Note: Only use this within a Rest Action, and not a general action.

  12. def NotFound[MissingType](id: Int)(implicit typeTag: scala.reflect.api.JavaUniverse.TypeTag[MissingType]): Nothing
  13. def NotFound(errorCode: String = null, msg: String = null, details: Option[JsValue] = None): Nothing

    Error out with an Not Found (404) response.

    Error out with an Not Found (404) response.

    Note: Only use this within a Rest Action, and not a general action.

  14. def NotFoundT[T](errorCode: String = null, msg: String = null, details: Option[T] = None)(implicit format: OFormat[T]): Nothing

    Error out with an Not Found (404) response.

    Error out with an Not Found (404) response. Detail will be converted to a json object.

    Note: Only use this within a Rest Action, and not a general action.

  15. def PreconditionFailed(errorCode: String = null, msg: String = null, details: Option[JsValue] = None): Nothing

    Error out with a precondition failed (412) response.

    Error out with a precondition failed (412) response.

    Note: Only use this within a Rest Action, and not a general action.

  16. def ServiceUnavailable(errorCode: String = null, msg: String = null, details: Option[JsValue] = None): Nothing

    Error out with a service unavailable (503) response.

    Error out with a service unavailable (503) response.

    Note: Only use this within a Rest Action, and not a general action.

  17. def Unauthorized(errorCode: String = null, msg: String = null, details: Option[JsValue] = None): Nothing

    Error out with an Unauthorized (401) response.

    Error out with an Unauthorized (401) response.

    Note: Only use this within a Rest Action, and not a general action.

  18. def UnauthorizedT[T](errorCode: String = null, msg: String = null, details: Option[T] = None)(implicit format: OFormat[T]): Nothing

    Error out with an Unauthorized (401) response.

    Error out with an Unauthorized (401) response. Detail will be converted to a json object.

    Note: Only use this within a Rest Action, and not a general action.

  19. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  20. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  21. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  23. def error(httpCode: Int, errorCode: String = null, msg: String = null, details: Option[JsValue] = None): Nothing

    Generate your own HTTP 4XX or 5XX response, specifying your own HTTP code.

  24. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  26. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  27. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  32. def toString(): String
    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped