Top Description Fields Constructors Methods
com.google.inject.internal

public final Class GenericErrorDetail

extends InternalErrorDetail<GenericErrorDetail>
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Static Imports
com.google.common.base.Preconditions.checkNotNull

Generic error message representing a Guice internal error.

Field Summary

Inherited from com.google.inject.internal.InternalErrorDetail:
errorId

Constructor Summary

AccessConstructor and Description
public
GenericErrorDetail(ErrorId errorId, String message, List<Object> sources, Throwable cause)

Method Summary

Modifier and TypeMethod and Description
public void
formatDetail(List<ErrorDetail<?>>
list of errors that are mergeable with this error
mergeableErrors
,
Formatter
for printing the error message
formatter
)

Implements abstract com.google.inject.spi.ErrorDetail.formatDetail.

Formats the detail of this error message along with other errors that are mergeable with this error.
public GenericErrorDetail
withSources(List<Object> newSources)

Implements abstract com.google.inject.spi.ErrorDetail.withSources.

Returns a new instance of the same ErrorDetail with updated sources.
Inherited from com.google.inject.internal.InternalErrorDetail:
getErrorIdentifiergetLearnMoreLink

Constructor Detail

GenericErrorDetailback to summary
public GenericErrorDetail(ErrorId errorId, String message, List<Object> sources, Throwable cause)

Method Detail

formatDetailback to summary
public void formatDetail(List<ErrorDetail<?>> mergeableErrors, Formatter formatter)

Implements abstract com.google.inject.spi.ErrorDetail.formatDetail.

Doc from com.google.inject.spi.ErrorDetail.formatDetail.

Formats the detail of this error message along with other errors that are mergeable with this error. This is called from format.

mergeableErrors is 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 calling isMergeable. The list will be empty if non of the other errors are mergable with this error.

Parameters
mergeableErrors:List<ErrorDetail<?>>

list of errors that are mergeable with this error

formatter:Formatter

for printing the error message

Annotations
@Override
withSourcesback to summary
public GenericErrorDetail withSources(List<Object> newSources)

Implements abstract com.google.inject.spi.ErrorDetail.withSources.

Doc from com.google.inject.spi.ErrorDetail.withSources.

Returns a new instance of the same ErrorDetail with updated sources.

Annotations
@Override