Package jason
Class JasonException
java.lang.Object
java.lang.Throwable
java.lang.Exception
jason.JasonException
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
NoValueException
,ReceiverNotFoundException
,RevisionFailedException
public class JasonException
extends java.lang.Exception
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description private static Term
defaultError
private Term
error
private ListTerm
errorAnnots
private static long
serialVersionUID
static Term
UNKNOW_ERROR
static Term
WRONG_ARGS
-
Constructor Summary
Constructors Constructor Description JasonException()
Creates a new instance ofJasonException
without detail message.JasonException(java.lang.String msg)
Constructs an instance ofJasonException
with the specified detail message.JasonException(java.lang.String msg, Term error)
Constructs an instance ofJasonException
with the specified detail message and error description term.JasonException(java.lang.String msg, Term error, java.lang.Exception cause)
JasonException(java.lang.String msg, java.lang.Exception cause)
-
Method Summary
Modifier and Type Method Description void
addErrorAnnot(Term t)
static ListTerm
createBasicErrorAnnots(Term id, java.lang.String msg)
static ListTerm
createBasicErrorAnnots(java.lang.String id, java.lang.String msg)
static JasonException
createWrongArgument(InternalAction ia, java.lang.String reason)
static JasonException
createWrongArgumentNb(DefaultInternalAction ia)
ListTerm
getErrorTerms()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
- Constant Field Values
-
WRONG_ARGS
-
UNKNOW_ERROR
-
defaultError
-
error
-
errorAnnots
-
-
Constructor Details
-
JasonException
public JasonException()Creates a new instance ofJasonException
without detail message. -
JasonException
public JasonException(java.lang.String msg)Constructs an instance ofJasonException
with the specified detail message.- Parameters:
msg
- the detail message.
-
JasonException
Constructs an instance ofJasonException
with the specified detail message and error description term.- Parameters:
msg
- the detail message.error
- the term that details (in AgentSpeak) the error
-
JasonException
public JasonException(java.lang.String msg, java.lang.Exception cause) -
JasonException
-
-
Method Details
-
addErrorAnnot
-
getErrorTerms
-
createWrongArgumentNb
-
createWrongArgument
-
createBasicErrorAnnots
-
createBasicErrorAnnots
-