Package com.google.inject.internal
Class GenericErrorDetail
- All Implemented Interfaces:
Serializable
public final class GenericErrorDetail
extends ErrorDetail<GenericErrorDetail>
implements Serializable
Generic error message representing a Guice internal error.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidformatDetail(List<ErrorDetail<?>> mergeableErrors, Formatter formatter) Formats the detail of this error message along with other errors that are mergeable with this error.Returns an optional string identifier for this error.Returns an optional link to additional documentation about this error to be included in the formatted error message.withSources(List<Object> newSources) Returns a new instance of the sameErrorDetailwith updated sources.Methods inherited from class com.google.inject.spi.ErrorDetail
equals, format, getCause, getMessage, getSources, hashCode, isMergeable
-
Field Details
-
errorId
-
-
Constructor Details
-
GenericErrorDetail
-
-
Method Details
-
formatDetail
Description copied from class:ErrorDetailFormats the detail of this error message along with other errors that are mergeable with this error. This is called fromErrorDetail.format(int, java.util.List<com.google.inject.spi.ErrorDetail<?>>, java.util.Formatter).mergeableErrorsis a list that contains all other errors that are reported in the same exception that are considered to be mergable with this error base on result of callingErrorDetail.isMergeable(com.google.inject.spi.ErrorDetail<?>). The list will be empty if non of the other errors are mergable with this error.- Specified by:
formatDetailin classErrorDetail<GenericErrorDetail>- Parameters:
mergeableErrors- list of errors that are mergeable with this errorformatter- for printing the error message
-
withSources
Description copied from class:ErrorDetailReturns a new instance of the sameErrorDetailwith updated sources.- Specified by:
withSourcesin classErrorDetail<GenericErrorDetail>
-
getLearnMoreLink
Description copied from class:ErrorDetailReturns an optional link to additional documentation about this error to be included in the formatted error message.- Overrides:
getLearnMoreLinkin classErrorDetail<T extends ErrorDetail<T>>
-
getErrorIdentifier
Description copied from class:ErrorDetailReturns an optional string identifier for this error.- Overrides:
getErrorIdentifierin classErrorDetail<T extends ErrorDetail<T>>
-