trait HttpProblem extends RuntimeException with Error
An error type which represents an HTTP related problem.
This is an implementation of RFC 7807. While not strictly required by
the RFC, instances of this type SHOULD provide a type, title, and
status.
- Note
This incarnation of RFC 7807 exists to be fully compliant with the RFC spec. The RFC permits all the fields to be optional, which can lead to error values which are not very useful. There is good reason for this choice by the authors of the RFC, if you are attempting to parse an error value you don't really want to fail during parsing just because the error is ill defined, you'd like to at least get what you can from the error value. That being said, using HttpError is much preferable to this type. Users are encouraged to use HttpError instead of HttpProblem.
- See also
- Alphabetic
- By Inheritance
- HttpProblem
- 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[String]
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: Option[Int]
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: Option[String]
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: Option[String]
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
- HttpProblem → 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( ... )