Trait/Object

org.coursera.naptime

Errors

Related Docs: object Errors | package naptime

Permalink

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

    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 BadGateway(errorCode: String = null, msg: String = null, details: Option[JsValue] = None): Nothing

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink
  13. def NotFound(errorCode: String = null, msg: String = null, details: Option[JsValue] = None): Nothing

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  23. def error(httpCode: Int, errorCode: String = null, msg: String = null, details: Option[JsValue] = None): Nothing

    Permalink

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

  24. def finalize(): Unit

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

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

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

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

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

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

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

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped