org.sbml.jsbml
public class SBMLError extends XMLException
Modifier and Type | Class and Description |
---|---|
static class |
SBMLError.SEVERITY |
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
category |
private int |
code |
private int |
column |
private Detail |
detail |
private java.lang.String |
excerpt |
private int |
line |
private Message |
message |
private java.lang.String |
packageName |
private static long |
serialVersionUID
Generated serial version identifier.
|
private java.lang.String |
severity |
private Message |
shortmessage |
Constructor and Description |
---|
SBMLError()
Constructs a new
SBMLError . |
SBMLError(java.lang.String message)
Constructs a new
SBMLError with the given message. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCategory()
Returns the category of the
SBMLError |
int |
getCode()
Returns the code of this
SBMLError . |
int |
getColumn()
Returns the column where this
SBMLError happened. |
Detail |
getDetail() |
java.lang.String |
getExcerpt()
Returns a fragment of the original XML file that induced the error.
|
int |
getLine()
Returns the line where this
SBMLError happened. |
java.lang.String |
getMessage()
Returns the message of the
SBMLError |
Message |
getMessageInstance() |
java.lang.String |
getPackage() |
java.lang.String |
getSeverity()
Returns the severity of the
SBMLError |
Message |
getShortMessage() |
boolean |
isError()
|
boolean |
isFatal()
|
boolean |
isInfo()
|
boolean |
isInternal()
|
boolean |
isSystem()
|
boolean |
isWarning()
|
boolean |
isXML()
|
void |
setCategory(java.lang.String category)
Sets the category of this
SBMLError . |
void |
setCode(int code)
Sets the error code of this
SBMLError . |
void |
setColumn(int column) |
void |
setDetail(Detail detail) |
void |
setExcerpt(java.lang.String excerpt)
Sets the excerpt of this
SBMLError . |
void |
setLine(int line) |
void |
setMessage(Message message)
Sets the message of this
SBMLError . |
void |
setPackage(java.lang.String packageName) |
void |
setSeverity(java.lang.String severity)
Sets the severity of this
SBMLError . |
void |
setShortMessage(Message shortmessage) |
java.lang.String |
toString() |
getErrorId
private static final long serialVersionUID
private java.lang.String category
private int code
private java.lang.String excerpt
private int column
private int line
private Message message
private Message shortmessage
private Detail detail
private java.lang.String severity
private java.lang.String packageName
public SBMLError()
SBMLError
.public SBMLError(java.lang.String message)
SBMLError
with the given message.message
- the error messagepublic java.lang.String getCategory()
SBMLError
SBMLError
public int getCode()
SBMLError
.SBMLError
.public int getColumn()
SBMLError
happened.SBMLError
happened.public java.lang.String getExcerpt()
public int getLine()
SBMLError
happened.SBMLError
happened.public Message getMessageInstance()
public java.lang.String getMessage()
SBMLError
getMessage
in class java.lang.Throwable
SBMLError
public java.lang.String getSeverity()
SBMLError
SBMLError
public boolean isFatal()
true
is the SBMLError
severity is of type SBMLError.SEVERITY.FATAL
public boolean isError()
true
is the SBMLError
severity is of type SBMLError.SEVERITY.ERROR
public boolean isInfo()
true
is the SBMLError
severity is of type SBMLError.SEVERITY.INFO
public boolean isWarning()
true
is the SBMLError
severity is of type SBMLError.SEVERITY.WARNING
public boolean isInternal()
true
is the SBMLError
category is of type internal
public boolean isSystem()
true
is the SBMLError
category is of type system
public boolean isXML()
true
is the SBMLError
category is of type xml
public void setCategory(java.lang.String category)
SBMLError
.category
- public void setCode(int code)
SBMLError
.code
- public void setExcerpt(java.lang.String excerpt)
SBMLError
.excerpt
- public void setMessage(Message message)
SBMLError
.message
- public void setSeverity(java.lang.String severity)
SBMLError
.severity
- public Message getShortMessage()
public void setShortMessage(Message shortmessage)
public Detail getDetail()
public void setDetail(Detail detail)
public java.lang.String toString()
toString
in class java.lang.Throwable
public void setColumn(int column)
public void setLine(int line)
public void setPackage(java.lang.String packageName)
public java.lang.String getPackage()