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.Error
Abstract 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 propagateServiceFactory
source error.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIssue(IssueTarget issueTarget)
Adds the issue to theIssueTarget
.ServiceFactory<?>
getServiceFactory()
Obtains the potentialServiceFactory
requiring 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 propagateServiceFactory
source error.- Parameters:
error
-AbstractSourceError
from theServiceFactory
.serviceFactory
-ServiceFactory
.
-
-
Method Detail
-
getServiceFactory
public ServiceFactory<?> getServiceFactory()
Obtains the potentialServiceFactory
requiring the property.- Returns:
ServiceFactory
requiring the property. May benull
if notServiceFactory
requiring the property.
-
addIssue
public void addIssue(IssueTarget issueTarget)
Adds the issue to theIssueTarget
.- Parameters:
issueTarget
-IssueTarget
.
-
-