Package com.google.inject.internal
Class InternalErrorDetail<T extends ErrorDetail<T>>
- java.lang.Object
-
- com.google.inject.spi.ErrorDetail<T>
-
- com.google.inject.internal.InternalErrorDetail<T>
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
BindingAlreadySetError
,ChildBindingAlreadySetError
,DuplicateElementError
,DuplicateMapKeyError
,GenericErrorDetail
,MissingConstructorError
,MissingImplementationError
,ScopeNotFoundError
abstract class InternalErrorDetail<T extends ErrorDetail<T>> extends ErrorDetail<T>
Represents an error created by Guice as opposed to custom error added to the binder from application code.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
DOC_BASE_URL
private static com.google.common.collect.ImmutableSet<ErrorId>
DOCUMENTED_ERRORS
protected ErrorId
errorId
-
Constructor Summary
Constructors Modifier Constructor Description protected
InternalErrorDetail(ErrorId errorId, java.lang.String message, java.util.List<java.lang.Object> sources, java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.google.inject.spi.ErrorDetail
equals, format, formatDetail, getCause, getMessage, getSources, hashCode, isMergeable, withSources
-
-
-
-
Field Detail
-
DOCUMENTED_ERRORS
private static final com.google.common.collect.ImmutableSet<ErrorId> DOCUMENTED_ERRORS
-
DOC_BASE_URL
private static final java.lang.String DOC_BASE_URL
- See Also:
- Constant Field Values
-
errorId
protected final ErrorId errorId
-
-
Constructor Detail
-
InternalErrorDetail
protected InternalErrorDetail(ErrorId errorId, java.lang.String message, java.util.List<java.lang.Object> sources, java.lang.Throwable cause)
-
-
Method Detail
-
getLearnMoreLink
protected final java.util.Optional<java.lang.String> getLearnMoreLink()
Description copied from class:ErrorDetail
Returns an optional link to additional documentation about this error to be included in the formatted error message.- Overrides:
getLearnMoreLink
in classErrorDetail<T extends ErrorDetail<T>>
-
getErrorIdentifier
protected final java.util.Optional<java.lang.String> getErrorIdentifier()
Description copied from class:ErrorDetail
Returns an optional string identifier for this error.- Overrides:
getErrorIdentifier
in classErrorDetail<T extends ErrorDetail<T>>
-
-