Class ProblemDetails
java.lang.Object
com.predic8.membrane.core.exceptions.ProblemDetails
Utility class for ProblemDetails Spec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSubType(String subType) build()Does only log, when key in log is needed.static ProblemDetailsgateway(boolean production) intgetTitle()getType()static ProblemDetailsinternal(boolean production) booleanstatic ProblemDetailsopenapi(boolean production) static ProblemDetailsstatic ProblemDetailsproblemDetails(String type, boolean production) static ProblemDetailssecurity(boolean production) statusCode(int statusCode) toString()static ProblemDetailsuser(boolean production)
-
Constructor Details
-
ProblemDetails
public ProblemDetails()
-
-
Method Details
-
user
-
internal
-
gateway
-
security
-
openapi
-
problemDetails
-
addSubType
-
statusCode
-
title
-
detail
- Parameters:
humanReadableExplanation- A human-readable explanation specific to this occurrence of the problem.- Returns:
- Instance
-
instance
-
extension
-
exception
-
build
Does only log, when key in log is needed. The caller is responsible to do the log if there is something interessting. -
parse
public static ProblemDetails parse(Response r) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
isProduction
public boolean isProduction() -
getStatusCode
public int getStatusCode() -
getType
-
getTitle
-
getDetail
-
getInstance
-
getExtensions
-
getException
-
toString
-