final class ScopeNotFoundError extends InternalErrorDetail<ScopeNotFoundError>
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Class<? extends java.lang.annotation.Annotation> |
scopeAnnotation |
errorId| Constructor and Description |
|---|
ScopeNotFoundError(java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotation,
java.util.List<java.lang.Object> sources) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
formatDetail(java.util.List<ErrorDetail<?>> mergeableErrors,
java.util.Formatter formatter)
Formats the detail of this error message along with other errors that are mergeable with this
error.
|
boolean |
isMergeable(ErrorDetail<?> other)
Returns true if this error can be merged with the
otherError and formatted together. |
ScopeNotFoundError |
withSources(java.util.List<java.lang.Object> newSources)
Returns a new instance of the same
ErrorDetail with updated sources. |
getErrorIdentifier, getLearnMoreLinkequals, format, getCause, getMessage, getSources, hashCodeprivate final java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotation
ScopeNotFoundError(java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotation,
java.util.List<java.lang.Object> sources)
public boolean isMergeable(ErrorDetail<?> other)
ErrorDetailotherError and formatted together.
By default this return false and implementations that support merging with other errors should override this method.
isMergeable in class ErrorDetail<ScopeNotFoundError>protected void formatDetail(java.util.List<ErrorDetail<?>> mergeableErrors, java.util.Formatter formatter)
ErrorDetailErrorDetail.format(int, java.util.List<com.google.inject.spi.ErrorDetail<?>>, java.util.Formatter).
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
ErrorDetail.isMergeable(com.google.inject.spi.ErrorDetail<?>). The list will be empty if non of the other errors are mergable with this
error.
formatDetail in class ErrorDetail<ScopeNotFoundError>mergeableErrors - list of errors that are mergeable with this errorformatter - for printing the error messagepublic ScopeNotFoundError withSources(java.util.List<java.lang.Object> newSources)
ErrorDetailErrorDetail with updated sources.withSources in class ErrorDetail<ScopeNotFoundError>