Class ScriptingException
Exception for signalling scripting errors.
Inheritance
System.Object
System.Exception
ScriptingException
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.ToString()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Kephas.Scripting
Assembly: Kephas.Scripting.dll
Syntax
public class ScriptingException : Exception, ISerializable, ISeverityQualifiedException
Constructors
| Improve this Doc View SourceScriptingException(String, Exception, Int32, Int32)
Initializes a new instance of the ScriptingException class.
Declaration
public ScriptingException(string message, Exception inner, int errorCode = 0, int lineNumber = 0)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message. |
System.Exception | inner | The inner exception. |
System.Int32 | errorCode | Optional. The error code. |
System.Int32 | lineNumber | Optional. The line number. |
ScriptingException(String, Int32, Int32)
Initializes a new instance of the ScriptingException class.
Declaration
public ScriptingException(string message, int errorCode = 0, int lineNumber = 0)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message. |
System.Int32 | errorCode | Optional. The error code. |
System.Int32 | lineNumber | Optional. The line number. |
Properties
| Improve this Doc View SourceErrorCode
Gets the error code.
Declaration
public int ErrorCode { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The error code. |
LineNumber
Gets the line number.
Declaration
public int LineNumber { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The line number. |
Severity
Gets or sets the severity.
Declaration
public SeverityLevel Severity { get; set; }
Property Value
Type | Description |
---|---|
SeverityLevel | The severity. |
Implements
System.Runtime.Serialization.ISerializable