c

wvlet.airframe.http

HttpServerException

class HttpServerException extends Exception with HttpServerExceptionBase

Exception to report errors to client

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HttpServerException
  2. HttpServerExceptionBase
  3. Exception
  4. Throwable
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new HttpServerException(status: HttpStatus)
  2. new HttpServerException(status: HttpStatus, msg: String, cause: Throwable)

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 accept: Seq[String]
  5. def acceptsJson: Boolean
  6. def acceptsMsgPack: Boolean
  7. def addHeader(key: String, value: String): HttpServerException
  8. final def addSuppressed(arg0: Throwable): Unit
    Definition Classes
    Throwable
  9. def allow: Option[String]
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def authorization: Option[String]
  12. def cacheControl: Option[String]
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  14. def contentBytes: Array[Byte]
  15. def contentEncoding: Option[String]
  16. def contentLength: Option[Long]
  17. def contentString: String
  18. def contentType: Option[String]
  19. def date: Option[String]
  20. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  22. def expires: Option[String]
  23. def fillInStackTrace(): Throwable
    Definition Classes
    Throwable
  24. def getAllHeader(key: String): Seq[String]
  25. def getCause(): Throwable
    Definition Classes
    Throwable
  26. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  27. def getHeader(key: String): Option[String]
  28. def getLocalizedMessage(): String
    Definition Classes
    Throwable
  29. def getMessage(): String
    Definition Classes
    Throwable
  30. def getStackTrace(): Array[StackTraceElement]
    Definition Classes
    Throwable
  31. final def getSuppressed(): Array[Throwable]
    Definition Classes
    Throwable
  32. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  33. def header: HttpMultiMap
  34. def host: Option[String]
  35. def initCause(arg0: Throwable): Throwable
    Definition Classes
    Throwable
  36. def isContentTypeJson: Boolean
  37. def isContentTypeMsgPack: Boolean
  38. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  39. def lastModified: Option[String]
  40. def message: Message
  41. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  42. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  43. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  44. def printStackTrace(arg0: PrintWriter): Unit
    Definition Classes
    Throwable
  45. def printStackTrace(arg0: PrintStream): Unit
    Definition Classes
    Throwable
  46. def printStackTrace(): Unit
    Definition Classes
    Throwable
  47. def referer: Option[String]
  48. def removeHeader(key: String): HttpServerException
  49. def setStackTrace(arg0: Array[StackTraceElement]): Unit
    Definition Classes
    Throwable
  50. val status: HttpStatus
  51. def statusCode: Int
  52. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  53. def toResponse: Response
  54. def toString(): String
    Definition Classes
    Throwable → AnyRef → Any
  55. def updateWith(newMessage: Message): HttpServerException
    Attributes
    protected
  56. def updateWith(newHeader: HttpMultiMap): HttpServerException
    Attributes
    protected
  57. def userAgent: Option[String]
  58. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  59. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  60. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  61. def withAccept(acceptType: String): HttpServerException
  62. def withAcceptMsgPack: HttpServerException
  63. def withAllow(allow: String): HttpServerException
  64. def withAuthorization(authorization: String): HttpServerException
  65. def withCacheControl(cacheControl: String): HttpServerException
  66. def withContent(content: Array[Byte]): HttpServerException
  67. def withContent(content: String): HttpServerException
  68. def withContent(content: Message): HttpServerException
  69. def withContentLength(length: Long): HttpServerException
  70. macro def withContentOf[A](a: A, codecFactory: MessageCodecFactory): HttpServerException

    Set the content body using a given object and codec factory.

    Set the content body using a given object and codec factory. Encoding can be JSON or MsgPack based on Content-Type header.

    Definition Classes
    HttpServerExceptionBase
  71. macro def withContentOf[A](a: A): HttpServerException

    Set the content body using a given object.

    Set the content body using a given object. Encoding can be JSON or MsgPack based on Content-Type header.

    Definition Classes
    HttpServerExceptionBase
  72. def withContentType(contentType: String): HttpServerException
  73. def withContentTypeJson: HttpServerException
  74. def withContentTypeMsgPack: HttpServerException
  75. def withDate(date: Instant): HttpServerException
  76. def withDate(date: String): HttpServerException
  77. def withExpires(expires: String): HttpServerException
  78. def withHeader(newHeader: HttpMultiMap): HttpServerException
  79. def withHeader(key: String, value: String): HttpServerException
  80. def withHost(host: String): HttpServerException
  81. def withJson(json: String): HttpServerException
  82. macro def withJsonOf[A](a: A, codecFactory: MessageCodecFactory): HttpServerException
    Definition Classes
    HttpServerExceptionBase
  83. macro def withJsonOf[A](a: A): HttpServerException
    Definition Classes
    HttpServerExceptionBase
  84. def withLastModified(lastModified: String): HttpServerException
  85. def withMsgPack(msgPack: MsgPack): HttpServerException
  86. macro def withMsgPackOf[A](a: A, codecFactory: MessageCodecFactory): HttpServerException
    Definition Classes
    HttpServerExceptionBase
  87. macro def withMsgPackOf[A](a: A): HttpServerException
    Definition Classes
    HttpServerExceptionBase
  88. def withReferer(referer: String): HttpServerException
  89. def withUserAgent(userAgent: String): HttpServerException
  90. def withXForwardedFor(xForwardedFor: String): HttpServerException
  91. def withXForwardedProto(xForwardedProto: String): HttpServerException
  92. def xForwardedFor: Option[String]
  93. def xForwardedProto: Option[String]

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
    Deprecated

Inherited from Exception

Inherited from Throwable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped