abstract class InternalErrorDetail<T extends ErrorDetail<T>> extends ErrorDetail<T>
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
DOC_BASE_URL |
private static com.google.common.collect.ImmutableSet<ErrorId> |
DOCUMENTED_ERRORS |
protected ErrorId |
errorId |
Modifier | Constructor and Description |
---|---|
protected |
InternalErrorDetail(ErrorId errorId,
java.lang.String message,
java.util.List<java.lang.Object> sources,
java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Optional<java.lang.String> |
getErrorIdentifier()
Returns an optional string identifier for this error.
|
protected java.util.Optional<java.lang.String> |
getLearnMoreLink()
Returns an optional link to additional documentation about this error to be included in the
formatted error message.
|
equals, format, formatDetail, getCause, getMessage, getSources, hashCode, isMergeable, withSources
private static final com.google.common.collect.ImmutableSet<ErrorId> DOCUMENTED_ERRORS
private static final java.lang.String DOC_BASE_URL
protected final ErrorId errorId
protected InternalErrorDetail(ErrorId errorId, java.lang.String message, java.util.List<java.lang.Object> sources, java.lang.Throwable cause)
protected final java.util.Optional<java.lang.String> getLearnMoreLink()
ErrorDetail
getLearnMoreLink
in class ErrorDetail<T extends ErrorDetail<T>>
protected final java.util.Optional<java.lang.String> getErrorIdentifier()
ErrorDetail
getErrorIdentifier
in class ErrorDetail<T extends ErrorDetail<T>>