public class JasonException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
static Term |
UNKNOW_ERROR |
static Term |
WRONG_ARGS |
Constructor and Description |
---|
JasonException()
Creates a new instance of
JasonException without detail message. |
JasonException(java.lang.String msg)
Constructs an instance of
JasonException with the specified detail message. |
JasonException(java.lang.String msg,
java.lang.Exception cause) |
JasonException(java.lang.String msg,
Term error)
Constructs an instance of
JasonException with the specified detail message
and error description term. |
JasonException(java.lang.String msg,
Term error,
java.lang.Exception cause) |
Modifier and Type | Method and Description |
---|---|
void |
addErrorAnnot(Term t) |
static ListTerm |
createBasicErrorAnnots(java.lang.String id,
java.lang.String msg) |
static ListTerm |
createBasicErrorAnnots(Term id,
java.lang.String msg) |
static JasonException |
createWrongArgument(InternalAction ia,
java.lang.String reason) |
static JasonException |
createWrongArgumentNb(DefaultInternalAction ia) |
ListTerm |
getErrorTerms() |
public static final Term WRONG_ARGS
public static final Term UNKNOW_ERROR
public JasonException()
JasonException
without detail message.public JasonException(java.lang.String msg)
JasonException
with the specified detail message.msg
- the detail message.public JasonException(java.lang.String msg, Term error)
JasonException
with the specified detail message
and error description term.msg
- the detail message.error
- the term that details (in AgentSpeak) the errorpublic JasonException(java.lang.String msg, java.lang.Exception cause)
public JasonException(java.lang.String msg, Term error, java.lang.Exception cause)
public void addErrorAnnot(Term t)
public ListTerm getErrorTerms()
public static JasonException createWrongArgumentNb(DefaultInternalAction ia)
public static JasonException createWrongArgument(InternalAction ia, java.lang.String reason)
public static ListTerm createBasicErrorAnnots(java.lang.String id, java.lang.String msg)