trait HttpError extends RuntimeException with Error
An error type which represents an HTTP related problem.
This is an implementation of RFC 7807. In order to encourage the generation of more useful error values, this type has stricter requirements on the fields than is required by the RFC. For an implementation which maps exactly to the requirements of RFC 7807 see HttpProblem. Usage of HttpProblem is discouraged when generating errors. It should only be used when you need to parse an error, and even then only as a fallback.
- Alphabetic
- By Inheritance
- HttpError
- Error
- RuntimeException
- Exception
- Throwable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
detail: Option[String]
Detail information about the error.
Detail information about the error. Unlike #title, this may change from occurrence to occurrence of the problem.
-
abstract
def
instance: Option[eu.timepit.refined.types.all.NonEmptyString]
This SHOULD be a URI reference unique to this instance of the problem.
This SHOULD be a URI reference unique to this instance of the problem.
-
abstract
def
status: HttpStatus
The status code associated with the problem.
The status code associated with the problem. It SHOULD map to status codes for HTTP (RFC 7231).
-
abstract
def
title: eu.timepit.refined.types.all.NonEmptyString
The title of the error.
The title of the error. Per RFC 7807 this should be a short human readable summary of the problem. It should not change from occurrence to occurrence of the problem, e.g. it should have a functional dependency on
type. -
abstract
def
type: eu.timepit.refined.types.all.NonEmptyString
The type of the error.
The type of the error. Per RFC 7807 this SHOULD be a URI.
Concrete 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
-
final
def
addSuppressed(arg0: Throwable): Unit
- Definition Classes
- Throwable
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
causes: Vector[Throwable]
- Definition Classes
- Error
-
final
lazy val
causesErrorMessages: Vector[String]
- Definition Classes
- Error
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
lazy val
errorMessages: Vector[String]
- Definition Classes
- Error
-
def
fillInStackTrace(): Throwable
- Definition Classes
- Throwable
-
final
lazy val
getCause: Throwable
- Definition Classes
- Error → Throwable
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
getLocalizedMessage(): String
- Definition Classes
- Throwable
-
final
lazy val
getMessage: String
- Definition Classes
- Error → 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
initCause(arg0: Throwable): Throwable
- Definition Classes
- Throwable
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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()
-
final
lazy val
primaryErrorMessage: eu.timepit.refined.types.all.NonEmptyString
- Definition Classes
- HttpError → Error
-
def
printStackTrace(arg0: PrintWriter): Unit
- Definition Classes
- Throwable
-
def
printStackTrace(arg0: PrintStream): Unit
- Definition Classes
- Throwable
-
def
printStackTrace(): Unit
- Definition Classes
- Throwable
-
def
secondaryErrorMessages: Vector[String]
- Definition Classes
- Error
-
def
setStackTrace(arg0: Array[StackTraceElement]): Unit
- Definition Classes
- Throwable
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Throwable → AnyRef → Any
-
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( ... )