Package org.apache.nlpcraft.model
Class NCRejection
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.nlpcraft.common.NCException
-
- org.apache.nlpcraft.model.NCRejection
-
- All Implemented Interfaces:
Serializable
public class NCRejection extends org.apache.nlpcraft.common.NCException
Exception to indicate that user input cannot be processed as is. This exception can be thrown from intent callbacks.This exception typically indicates that user has not provided enough information in the input string to have it processed automatically. In most cases this means that the user's input is either too short or too simple, too long or too complex, missing required context, or unrelated to requested data model.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NCRejection(String msg)
Creates new rejection exception with given message.NCRejection(String msg, Throwable cause)
Creates new rejection exception with given message and cause.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
NCRejection
public NCRejection(String msg)
Creates new rejection exception with given message.- Parameters:
msg
- Rejection message.
-
-