NCIntentSkip
Control flow exception to skip current intent. This exception can be thrown by the intent callback to indicate that current intent should be skipped (even though it was matched and its callback was called). If there's more than one intent matched the next best matching intent will be selected and its callback will be called.
This exception becomes useful when it is hard or impossible to encode the entire matching logic using just declarative IDL. In these cases the intent definition can be relaxed and the "last mile" of intent matching can happen inside the intent callback's user logic. If it is determined that intent in fact does not match then throwing this exception allows to try next best matching intent, if any.
- See also:
- Source:
- NCIntentSkip.scala
class NCException
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any