LevelVersionError
, PropertyException
, SBMLTypeUndefinedException
public class SBMLError extends XMLException
Modifier and Type | Class | Description |
---|---|---|
static class |
SBMLError.SEVERITY |
Constructor | Description |
---|---|
SBMLError() |
Constructs a new
SBMLError . |
SBMLError(java.lang.String message) |
Constructs a new
SBMLError with the given message. |
Modifier and Type | Method | 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() |
Returns the full
Message . |
java.lang.String |
getPackage() |
|
java.lang.String |
getSeverity() |
Returns the severity of the
SBMLError |
Message |
getShortMessage() |
|
SBase |
getSource() |
Returns the source for this
SBMLError . |
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) |
|
void |
setSource(SBase source) |
Sets the source of this
SBMLError . |
java.lang.String |
toString() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
getErrorId
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()
Message
.Message
.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)
shortmessage
- public Detail getDetail()
public void setDetail(Detail detail)
detail
- public java.lang.String toString()
toString
in class java.lang.Throwable
public void setColumn(int column)
column
- public void setLine(int line)
line
- public void setPackage(java.lang.String packageName)
packageName
- public java.lang.String getPackage()