org.sbml.jsbml
public class SBMLException extends XMLException
Modifier and Type | Class and Description |
---|---|
static class |
SBMLException.Category
Category of this exception.
|
static class |
SBMLException.Code
Error codes.
|
static class |
SBMLException.Type |
Modifier and Type | Field and Description |
---|---|
private SBMLException.Category |
category
The category of this exception.
|
private SBMLException.Code |
code |
private static long |
serialVersionUID
Generated serial version id.
|
private java.lang.String |
shortMessage |
private SBMLException.Type |
type |
Constructor and Description |
---|
SBMLException()
Creates a new
SBMLException instance. |
SBMLException(java.lang.String message)
Creates a new
SBMLException instance. |
SBMLException(java.lang.String message,
java.lang.Throwable cause)
Creates a new
SBMLException instance. |
SBMLException(java.lang.Throwable cause)
Creates a new
SBMLException instance. |
Modifier and Type | Method and Description |
---|---|
SBMLException.Category |
getCategory() |
SBMLException.Code |
getCode() |
java.lang.String |
getShortMessage() |
SBMLException.Type |
getType() |
boolean |
isError() |
boolean |
isFatal() |
boolean |
isInfo() |
boolean |
isInternal() |
boolean |
isSystem() |
boolean |
isWarning() |
boolean |
isXML() |
void |
setCategory(SBMLException.Category category) |
void |
setCode(SBMLException.Code code) |
void |
setError(boolean error) |
void |
setFatal(boolean fatal) |
void |
setInfo(boolean info) |
void |
setInternal(boolean internal) |
void |
setShortMessage(java.lang.String shortMessage) |
void |
setSystem(boolean system) |
void |
setWarning(boolean warning) |
void |
setXML(boolean xml) |
getErrorId
private static final long serialVersionUID
private SBMLException.Category category
private SBMLException.Code code
private java.lang.String shortMessage
private SBMLException.Type type
public SBMLException()
SBMLException
instance.public SBMLException(java.lang.String message)
SBMLException
instance.message
- the exception message.public SBMLException(java.lang.String message, java.lang.Throwable cause)
SBMLException
instance.message
- the exception message.cause
- a Throwable
that is the cause of the original problem.public SBMLException(java.lang.Throwable cause)
SBMLException
instance.cause
- a Throwable
that is the cause of the original problem.public SBMLException.Category getCategory()
public SBMLException.Code getCode()
public java.lang.String getShortMessage()
public SBMLException.Type getType()
public boolean isError()
public boolean isFatal()
public boolean isInfo()
public boolean isInternal()
public boolean isSystem()
public boolean isWarning()
public boolean isXML()
public void setCategory(SBMLException.Category category)
category
- public void setCode(SBMLException.Code code)
code
- public void setError(boolean error)
error
- public void setFatal(boolean fatal)
fatal
- public void setInfo(boolean info)
info
- public void setInternal(boolean internal)
internal
- public void setShortMessage(java.lang.String shortMessage)
shortMessage
- public void setSystem(boolean system)
system
- public void setWarning(boolean warning)
warning
- public void setXML(boolean xml)
xml
-