org.coursera.naptime

Errors

Related Docs: object Errors | package naptime

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
Learn more about member selection
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 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.

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

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

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

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

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

  10. def NotFound[MissingType](id: Int)(implicit typeTag: scala.reflect.api.JavaUniverse.TypeTag[MissingType]): Nothing

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

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

    Error out with a precondition failed (411) response.

    Error out with a precondition failed (411) response.

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

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

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

  15. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  16. def clone(): AnyRef

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

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

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

  20. def finalize(): Unit

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

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

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

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

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

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

    Definition Classes
    AnyRef
  28. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped