Package org.scictrl.mp.orbitcorrect
Class DataBushException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.scictrl.mp.orbitcorrect.DataBushException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DataBushInitializationException,DataBushPackedException,InconsistentDataException
DataBushException is general exception for dealing with DataBush. It has three
subclasses for more specific exceptions.- Author:
- igor@scictrl.com
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionintException code.Source element. -
Constructor Summary
ConstructorsConstructorDescriptionDataBushExceptionconstructor with specified parameter.DataBushException(String message) DataBushExceptionconstructor with specified parameter.DataBushException(String exception, int code) DataBushExceptionconstructor with specified parameters.DataBushException(String message, Throwable cause) DataBushExceptionconstructor with specified parameter.DataBushException(AbstractDataBushElement source, String message) DataBushExceptionconstructor with specified parameters.DataBushException(AbstractDataBushElement source, String message, int code) DataBushExceptionconstructor with specified parameters.DataBushException(AbstractDataBushElement source, String message, int code, Throwable cause) DataBushExceptionconstructor with specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionThis method create string that describe exception.protected StringReturns the fully-qualified name of the entity represented by thisDataBushExceptionobject, as aString.intgetCode()Getter for the fieldcode.Returns source ofDataBushException, which isAbstractDataBushElementtoString()This method create string that describe this class object.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
source
Source element. -
code
public int codeException code.
-
-
Constructor Details
-
DataBushException
public DataBushException()DataBushExceptionconstructor with specified parameter. -
DataBushException
DataBushExceptionconstructor with specified parameter.- Parameters:
message- aStringobject
-
DataBushException
DataBushExceptionconstructor with specified parameter.- Parameters:
message- messagecause- the cause
-
DataBushException
DataBushExceptionconstructor with specified parameters.- Parameters:
exception- messagecode- error code
-
DataBushException
DataBushExceptionconstructor with specified parameters.- Parameters:
source- AbstractDataBushElementmessage- the message
-
DataBushException
DataBushExceptionconstructor with specified parameters.- Parameters:
source- AbstractDataBushElementmessage- the messagecode- a intcause- aThrowableobject
-
DataBushException
DataBushExceptionconstructor with specified parameters.- Parameters:
source- AbstractDataBushElementmessage- the messagecode- error code
-
-
Method Details
-
formatMessage
This method create string that describe exception.- Returns:
- java.lang.String
-
getClassName
Returns the fully-qualified name of the entity represented by thisDataBushExceptionobject, as aString.- Returns:
- java.lang.String
-
getCode
public int getCode()Getter for the field
code.- Returns:
- int
-
getSource
Returns source ofDataBushException, which isAbstractDataBushElement- Returns:
- a
AbstractDataBushElementobject
-
toString
This method create string that describe this class object. This string is different, than string, returned byformatMessageoutput. Actually it is extended with name, returned bygetClassName.
-