Package net.officefloor.frame.api.source
Class AbstractSourceError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Error
-
- net.officefloor.frame.api.source.AbstractSourceError
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ConfigurationError,LoadServiceError,UnknownClassError,UnknownPropertyError,UnknownResourceError,UnknownServiceError
public abstract class AbstractSourceError extends java.lang.ErrorAbstract source error.- Author:
- Daniel Sagenschneider
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractSourceError(java.lang.String message)Instantiate with message.AbstractSourceError(java.lang.String message, java.lang.Throwable cause)Instantiate with message and cause.AbstractSourceError(AbstractSourceError error, ServiceFactory<?> serviceFactory)Instantiate to propagateServiceFactorysource error.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddIssue(IssueTarget issueTarget)Adds the issue to theIssueTarget.ServiceFactory<?>getServiceFactory()Obtains the potentialServiceFactoryrequiring the property.
-
-
-
Constructor Detail
-
AbstractSourceError
public AbstractSourceError(java.lang.String message)
Instantiate with message.- Parameters:
message- Message.
-
AbstractSourceError
public AbstractSourceError(java.lang.String message, java.lang.Throwable cause)Instantiate with message and cause.- Parameters:
message- Message.cause- Cause.
-
AbstractSourceError
public AbstractSourceError(AbstractSourceError error, ServiceFactory<?> serviceFactory)
Instantiate to propagateServiceFactorysource error.- Parameters:
error-AbstractSourceErrorfrom theServiceFactory.serviceFactory-ServiceFactory.
-
-
Method Detail
-
getServiceFactory
public ServiceFactory<?> getServiceFactory()
Obtains the potentialServiceFactoryrequiring the property.- Returns:
ServiceFactoryrequiring the property. May benullif notServiceFactoryrequiring the property.
-
addIssue
public void addIssue(IssueTarget issueTarget)
Adds the issue to theIssueTarget.- Parameters:
issueTarget-IssueTarget.
-
-