org.glassfish.hk2.api
Interface ErrorInformation

All Known Implementing Classes:
ErrorInformationImpl

public interface ErrorInformation

This class has information in it about the error that has occurred

Author:
jwells

Method Summary
 MultiException getAssociatedException()
          This will contain the associated exception or exceptions that caused the failure.
 Descriptor getDescriptor()
          This will contain the active descriptor that is associated with this failure.
 ErrorType getErrorType()
          Gets the type of error that has occurred.
 Injectee getInjectee()
          This will contain information about the Injectee that was being injected into when the error occurred.
 

Method Detail

getErrorType

ErrorType getErrorType()
Gets the type of error that has occurred. Code should be written such that future error types are handled appropriately.

Returns:
At this time this will always be FAILURE_TO_REIFY

getDescriptor

Descriptor getDescriptor()
This will contain the active descriptor that is associated with this failure. In the case of FAILURE_TO_REIFY it will contain the descriptor that failed to reify.

Returns:
The descriptor associated with this failure

getInjectee

Injectee getInjectee()
This will contain information about the Injectee that was being injected into when the error occurred.

In the case of FAILURE_TO_REIFY this will be the injectee that was being looked up to satisfy the injection point, or null if this lookup was due to an API call

Returns:
The injectee associated with this failure

getAssociatedException

MultiException getAssociatedException()
This will contain the associated exception or exceptions that caused the failure.

In the case of FAILURE_TO_REIFY this will contain the exception that caused the reification process to fail

Returns:
The exception associated with this failure


Copyright © 2013 Oracle Corporation. All Rights Reserved.