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:
Serializable
- Direct Known Subclasses:
ConfigurationError,LoadServiceError,UnknownClassError,UnknownPropertyError,UnknownResourceError,UnknownServiceError
Abstract source error.
- Author:
- Daniel Sagenschneider
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractSourceError(String message) Instantiate with message.AbstractSourceError(String message, Throwable cause) Instantiate with message and cause.AbstractSourceError(AbstractSourceError error, ServiceFactory<?> serviceFactory) Instantiate to propagateServiceFactorysource error. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIssue(IssueTarget issueTarget) Adds the issue to theIssueTarget.Obtains the potentialServiceFactoryrequiring the property.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AbstractSourceError
Instantiate with message.- Parameters:
message- Message.
-
AbstractSourceError
Instantiate with message and cause.- Parameters:
message- Message.cause- Cause.
-
AbstractSourceError
Instantiate to propagateServiceFactorysource error.- Parameters:
error-AbstractSourceErrorfrom theServiceFactory.serviceFactory-ServiceFactory.
-
-
Method Details
-
getServiceFactory
Obtains the potentialServiceFactoryrequiring the property.- Returns:
ServiceFactoryrequiring the property. May benullif notServiceFactoryrequiring the property.
-
addIssue
Adds the issue to theIssueTarget.- Parameters:
issueTarget-IssueTarget.
-