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
Modifier and TypeFieldDescriptionint
Exception code.Source element. -
Constructor Summary
ConstructorDescriptionDataBushException
constructor with specified parameter.DataBushException
(String message) DataBushException
constructor with specified parameter.DataBushException
(String exception, int code) DataBushException
constructor with specified parameters.DataBushException
(String message, Throwable cause) DataBushException
constructor with specified parameter.DataBushException
(AbstractDataBushElement source, String message) DataBushException
constructor with specified parameters.DataBushException
(AbstractDataBushElement source, String message, int code) DataBushException
constructor with specified parameters.DataBushException
(AbstractDataBushElement source, String message, int code, Throwable cause) DataBushException
constructor with specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionThis method create string that describe exception.protected String
Returns the fully-qualified name of the entity represented by thisDataBushException
object, as aString
.int
getCode()
Getter for the fieldcode
.Returns source ofDataBushException
, which isAbstractDataBushElement
toString()
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()DataBushException
constructor with specified parameter. -
DataBushException
DataBushException
constructor with specified parameter.- Parameters:
message
- aString
object
-
DataBushException
DataBushException
constructor with specified parameter.- Parameters:
message
- messagecause
- the cause
-
DataBushException
DataBushException
constructor with specified parameters.- Parameters:
exception
- messagecode
- error code
-
DataBushException
DataBushException
constructor with specified parameters.- Parameters:
source
- AbstractDataBushElementmessage
- the message
-
DataBushException
DataBushException
constructor with specified parameters.- Parameters:
source
- AbstractDataBushElementmessage
- the messagecode
- a intcause
- aThrowable
object
-
DataBushException
DataBushException
constructor 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 thisDataBushException
object, 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
AbstractDataBushElement
object
-
toString
This method create string that describe this class object. This string is different, than string, returned byformatMessage
output. Actually it is extended with name, returned bygetClassName
.
-