| java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.griphyn.common.util.FactoryException
All known Subclasses: org.griphyn.cPlanner.transfer.refiner.TransferRefinerFactoryException, org.griphyn.cPlanner.code.generator.CodeGeneratorFactoryException, org.griphyn.cPlanner.provenance.pasoa.pps.PPSFactoryException, org.griphyn.cPlanner.provenance.pasoa.producer.XMLProducerFactoryException, org.griphyn.cPlanner.transfer.sls.SLSFactoryException, org.griphyn.cPlanner.partitioner.PartitionerFactoryException, org.griphyn.cPlanner.code.generator.condor.style.CondorStyleFactoryException, org.griphyn.cPlanner.transfer.implementation.TransferImplementationFactoryException, org.griphyn.cPlanner.selector.site.SiteSelectorFactoryException, org.griphyn.cPlanner.cluster.ClustererFactoryException, org.griphyn.cPlanner.code.gridstart.GridStartFactoryException, org.griphyn.cPlanner.selector.replica.ReplicaSelectorFactoryException, org.griphyn.cPlanner.parser.pdax.PDAXCallbackFactoryException, org.griphyn.common.catalog.work.WorkFactoryException, org.griphyn.common.catalog.transformation.TransformationFactoryException, org.griphyn.cPlanner.cluster.aggregator.JobAggregatorFactoryException, org.griphyn.cPlanner.poolinfo.SiteFactoryException, org.griphyn.cPlanner.parser.dax.DAXCallbackFactoryException,
FactoryException | public class FactoryException extends java.lang.RuntimeException (Code) | | The base exception class to notify of errors, while instantiating classes
via any of the factories. Each factory, should throw an exception that is
a subclass of this class.
author: Karan Vahi author: Jens-S. Vöckler author: Gaurang Mehta |
Field Summary | |
final public static String | DEFAULT_NAME The default classname that is associated with the exception. | protected String | mClassname The name of the class that was trying to be instantiated when this
error occured, or some other signifier like module name. |
Constructor Summary | |
public | FactoryException(String msg) Constructs a FactoryException with no detail
message. | public | FactoryException(String msg, String classname) Constructs a FactoryException with the specified detailed
message. | public | FactoryException(String msg, Throwable cause) Constructs a FactoryException with the
specified detailed message and a cause. | public | FactoryException(String msg, String classname, Throwable cause) Constructs a FactoryException with the
specified detailed message and a cause.
Parameters: msg - is the detailed message that is to be logged. Parameters: classname - the name of class that was trying to be instantiated. Parameters: cause - is the cause (which is saved for later retrieval by thejava.lang.Throwable.getCause method). |
Method Summary | |
public String | convertException() Converts most of the common instantiation exceptions from the class
loader into an error message. | public String | convertException(int index) Converts most of the common instantiation exceptions from the class
loader into an error message. | public static String | convertException(String classname, Throwable e, int index) Converts most of the common instantiation exceptions from the class
loader into an error message. | public String | getClassname() Returns the name of the class that was trying to be loaded when this
error occured, or some other signifier like a module name. |
DEFAULT_NAME | final public static String DEFAULT_NAME(Code) | | The default classname that is associated with the exception.
|
mClassname | protected String mClassname(Code) | | The name of the class that was trying to be instantiated when this
error occured, or some other signifier like module name.
|
FactoryException | public FactoryException(String msg)(Code) | | Constructs a FactoryException with no detail
message. The associated classname is set to value specified by
DEFAULT_NAME .
Parameters: msg - the detailed message. See Also: FactoryException.DEFAULT_NAME |
FactoryException | public FactoryException(String msg, String classname)(Code) | | Constructs a FactoryException with the specified detailed
message.
Parameters: msg - is the detailed message. Parameters: classname - the name of class that was trying to be instantiated orsome other signifier like module name. |
FactoryException | public FactoryException(String msg, Throwable cause)(Code) | | Constructs a FactoryException with the
specified detailed message and a cause. The associated classname is set
to value specified by DEFAULT_NAME .
Parameters: msg - is the detailed message that is to be logged. Parameters: cause - is the cause (which is saved for later retrieval by thejava.lang.Throwable.getCause method). A null value is permitted, and indicates that the cause is nonexistent orunknown. See Also: FactoryException.DEFAULT_NAME |
FactoryException | public FactoryException(String msg, String classname, Throwable cause)(Code) | | Constructs a FactoryException with the
specified detailed message and a cause.
Parameters: msg - is the detailed message that is to be logged. Parameters: classname - the name of class that was trying to be instantiated. Parameters: cause - is the cause (which is saved for later retrieval by thejava.lang.Throwable.getCause method). A null value is permitted, and indicates that the cause is nonexistent orunknown. |
convertException | public String convertException()(Code) | | Converts most of the common instantiation exceptions from the class
loader into an error message. Use for getting sensible error messages,
of the causes that are associated with a FactoryException. The index
in the messages starts from 0.
the error message |
convertException | public String convertException(int index)(Code) | | Converts most of the common instantiation exceptions from the class
loader into an error message. Use for getting sensible error messages,
of the causes that are associated with a FactoryException. The index
in the messages starts from 0.
Parameters: index - the index to start from. the error message. |
convertException | public static String convertException(String classname, Throwable e, int index)(Code) | | Converts most of the common instantiation exceptions from the class
loader into an error message. Use for getting sensible error messages,
of the causes that are associated with a FactoryException.
Parameters: classname - the class that was trying to be loaded or some othersignifier. Parameters: e - the FactoryException that is thrown. Parameters: index - the index to start from. the error message. |
getClassname | public String getClassname()(Code) | | Returns the name of the class that was trying to be loaded when this
error occured, or some other signifier like a module name.
the name of the class. |
|
|