class HttpServerException extends Exception with HttpServerExceptionBase
Exception to report errors to client
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- HttpServerException
- HttpServerExceptionBase
- Exception
- Throwable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new HttpServerException(status: HttpStatus)
- new HttpServerException(status: HttpStatus, msg: String, cause: Throwable)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def accept: Seq[String]
- def acceptsJson: Boolean
- def acceptsMsgPack: Boolean
- def addHeader(key: String, value: String): HttpServerException
-
final
def
addSuppressed(arg0: Throwable): Unit
- Definition Classes
- Throwable
- def allow: Option[String]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def authorization: Option[String]
- def cacheControl: Option[String]
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- def contentBytes: Array[Byte]
- def contentEncoding: Option[String]
- def contentLength: Option[Long]
- def contentString: String
- def contentType: Option[String]
- def date: Option[String]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def expires: Option[String]
-
def
fillInStackTrace(): Throwable
- Definition Classes
- Throwable
- def getAllHeader(key: String): Seq[String]
-
def
getCause(): Throwable
- Definition Classes
- Throwable
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getHeader(key: String): Option[String]
-
def
getLocalizedMessage(): String
- Definition Classes
- Throwable
-
def
getMessage(): String
- Definition Classes
- Throwable
-
def
getStackTrace(): Array[StackTraceElement]
- Definition Classes
- Throwable
-
final
def
getSuppressed(): Array[Throwable]
- Definition Classes
- Throwable
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def header: HttpMultiMap
- def host: Option[String]
-
def
initCause(arg0: Throwable): Throwable
- Definition Classes
- Throwable
- def isContentTypeJson: Boolean
- def isContentTypeMsgPack: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lastModified: Option[String]
- def message: Message
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
printStackTrace(arg0: PrintWriter): Unit
- Definition Classes
- Throwable
-
def
printStackTrace(arg0: PrintStream): Unit
- Definition Classes
- Throwable
-
def
printStackTrace(): Unit
- Definition Classes
- Throwable
- def referer: Option[String]
- def removeHeader(key: String): HttpServerException
-
def
setStackTrace(arg0: Array[StackTraceElement]): Unit
- Definition Classes
- Throwable
- val status: HttpStatus
- def statusCode: Int
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def toResponse: Response
-
def
toString(): String
- Definition Classes
- Throwable → AnyRef → Any
-
def
updateWith(newMessage: Message): HttpServerException
- Attributes
- protected
-
def
updateWith(newHeader: HttpMultiMap): HttpServerException
- Attributes
- protected
- def userAgent: Option[String]
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def withAccept(acceptType: String): HttpServerException
- def withAcceptMsgPack: HttpServerException
- def withAllow(allow: String): HttpServerException
- def withAuthorization(authorization: String): HttpServerException
- def withCacheControl(cacheControl: String): HttpServerException
- def withContent(content: Array[Byte]): HttpServerException
- def withContent(content: String): HttpServerException
- def withContent(content: Message): HttpServerException
- def withContentLength(length: Long): HttpServerException
-
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
-
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
- def withContentType(contentType: String): HttpServerException
- def withContentTypeJson: HttpServerException
- def withContentTypeMsgPack: HttpServerException
- def withDate(date: Instant): HttpServerException
- def withDate(date: String): HttpServerException
- def withExpires(expires: String): HttpServerException
- def withHeader(newHeader: HttpMultiMap): HttpServerException
- def withHeader(key: String, value: String): HttpServerException
- def withHost(host: String): HttpServerException
- def withJson(json: String): HttpServerException
-
macro
def
withJsonOf[A](a: A, codecFactory: MessageCodecFactory): HttpServerException
- Definition Classes
- HttpServerExceptionBase
-
macro
def
withJsonOf[A](a: A): HttpServerException
- Definition Classes
- HttpServerExceptionBase
- def withLastModified(lastModified: String): HttpServerException
- def withMsgPack(msgPack: MsgPack): HttpServerException
-
macro
def
withMsgPackOf[A](a: A, codecFactory: MessageCodecFactory): HttpServerException
- Definition Classes
- HttpServerExceptionBase
-
macro
def
withMsgPackOf[A](a: A): HttpServerException
- Definition Classes
- HttpServerExceptionBase
- def withReferer(referer: String): HttpServerException
- def withUserAgent(userAgent: String): HttpServerException
- def withXForwardedFor(xForwardedFor: String): HttpServerException
- def withXForwardedProto(xForwardedProto: String): HttpServerException
- def xForwardedFor: Option[String]
- def xForwardedProto: Option[String]
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated