Packages

c

uk.gov.hmrc.play.bootstrap.http

JsonErrorHandler

class JsonErrorHandler extends backend.http.JsonErrorHandler

Annotations
@deprecated
Deprecated

(Since version 2.12.0) Use uk.gov.hmrc.play.bootstrap.backend.http.JsonErrorHandler instead

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsonErrorHandler
  2. JsonErrorHandler
  3. BackendHeaderCarrierProvider
  4. HttpErrorHandler
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new JsonErrorHandler(auditConnector: AuditConnector, httpAuditEvent: HttpAuditEvent, configuration: Configuration)(implicit ec: ExecutionContext)
    Annotations
    @Inject()

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 asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  10. implicit def hc(implicit request: RequestHeader): HeaderCarrier
    Attributes
    protected
    Definition Classes
    BackendHeaderCarrierProvider
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  15. def onClientError(request: RequestHeader, statusCode: Int, message: String): Future[Result]
    Definition Classes
    JsonErrorHandler → HttpErrorHandler
  16. def onServerError(request: RequestHeader, ex: Throwable): Future[Result]
    Definition Classes
    JsonErrorHandler → HttpErrorHandler
  17. val suppress4xxErrorMessages: Boolean
    Attributes
    protected
    Definition Classes
    JsonErrorHandler
  18. val suppress5xxErrorMessages: Boolean
    Attributes
    protected
    Definition Classes
    JsonErrorHandler
  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. val upstreamWarnStatuses: Seq[Int]

    upstreamWarnStatuses is used to determine the log level for exceptions relating to a HttpResponse.

    upstreamWarnStatuses is used to determine the log level for exceptions relating to a HttpResponse. You can set this value in your config as a list of integers representing response codes that should log at a warning level rather an error level.

    e.g. bootstrap.errorHandler.warnOnly.statusCodes=[400,404,502]

    This is used to reduce the number of noise the number of duplicated alerts for a microservice.

    Attributes
    protected
    Definition Classes
    JsonErrorHandler
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

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

    (Since version 9)

Inherited from HttpErrorHandler

Inherited from AnyRef

Inherited from Any

Ungrouped