org.hyperscala.service

ServiceException

case class ServiceException(message: String, code: Int = 1) extends RuntimeException with Product with Serializable

ServiceException is a simple wrapper around RuntimeException, but when thrown by a Service method the message will be sent back in the response JSON. If any other exception is fired the details of the message will be hidden from the client. Only use this if you want the client to be able to read an explicit error message.

message

represents the message that will be sent back to the client

code

represents the error code that will be sent back to the client (defaults to -1)

Linear Supertypes
Serializable, Product, Equals, RuntimeException, Exception, Throwable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ServiceException
  2. Serializable
  3. Product
  4. Equals
  5. RuntimeException
  6. Exception
  7. Throwable
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ServiceException(message: String, code: Int = 1)

    message

    represents the message that will be sent back to the client

    code

    represents the error code that will be sent back to the client (defaults to -1)

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. final def addSuppressed(arg0: Throwable): Unit

    Definition Classes
    Throwable
  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val code: Int

    represents the error code that will be sent back to the client (defaults to -1)

  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def fillInStackTrace(): Throwable

    Definition Classes
    Throwable
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def getCause(): Throwable

    Definition Classes
    Throwable
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def getLocalizedMessage(): String

    Definition Classes
    Throwable
  14. def getMessage(): String

    Definition Classes
    Throwable
  15. def getStackTrace(): Array[StackTraceElement]

    Definition Classes
    Throwable
  16. final def getSuppressed(): Array[Throwable]

    Definition Classes
    Throwable
  17. def initCause(arg0: Throwable): Throwable

    Definition Classes
    Throwable
  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. val message: String

    represents the message that will be sent back to the client

  20. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  23. def printStackTrace(arg0: PrintWriter): Unit

    Definition Classes
    Throwable
  24. def printStackTrace(arg0: PrintStream): Unit

    Definition Classes
    Throwable
  25. def printStackTrace(): Unit

    Definition Classes
    Throwable
  26. def setStackTrace(arg0: Array[StackTraceElement]): Unit

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

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    Throwable → 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 Serializable

Inherited from Product

Inherited from Equals

Inherited from RuntimeException

Inherited from Exception

Inherited from Throwable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped