Class AIConstraintException
- Namespace
- IntentSharp
- Assembly
- IntentSharp.dll
A constraint stopped the operation: a limit such as the model-call ceiling (MaxModelCalls), declared in
code, by an AIConstraintAttribute or by a setting. IntentClient catches it and
ends the request with a failed result that carries one Constraint issue with its message.
public class AIConstraintException : IntentSharpException, ISerializable
- Inheritance
-
objectExceptionAIConstraintException
- Implements
-
ISerializable
- Inherited Members
-
Exception.GetBaseException()Exception.GetType()Exception.ToString()Exception.DataException.HelpLinkException.HResultException.InnerExceptionException.MessageException.SourceException.StackTraceException.TargetSiteException.SerializeObjectStateobject.Equals(object)object.Equals(object, object)object.GetHashCode()object.MemberwiseClone()object.ReferenceEquals(object, object)
- Extension Methods
Remarks
In 1.0 a setting that refuses a request before any model call is thrown as a constraint too: a runtime shape whose
schema names a built-in meta-schema while schemas.metaSchemaRefs is refuse throws this exception with
Constraint set to the setting's name, schemas.metaSchemaRefs.
Constructors
- AIConstraintException(string, string)
Creates the exception for the named constraint.
- AIConstraintException(string, string, Exception)
Creates the exception for the named constraint, with the exception that caused it.
Properties
- Constraint
The name of the constraint that stopped the operation, for example "MaxModelCalls", or the setting that refused it.