点击或拖拽改变大小

Error 类

X#
XSharp Runtime base Error class
继承层次
Object
  Exception
    Error
      SQLErrorInfo
      RddError
      SQLErrorInfo

命名空间:  XSharp
程序集:  XSharp.Core (在 XSharp.Core.dll 中) 版本:2.22 GA
语法
 CLASS Error INHERIT Exception
查看代码

Error 类型公开以下成员。

构造函数
  名称说明
公共方法Error
Create an Error Object
公共方法Error(Exception)
Create an Error Object with the Innner Exception
公共方法Error(String)
Create an Error Object with the specified Description
公共方法Error(UInt32, String)
Create an Error Object for a Gencode and Argument Name.
公共方法Error(UInt32, UInt32)
Create an Error Object.
公共方法Error(UInt32, String, String)
Create an Error Object for a Gencode, Argument Name and Description.
公共方法Error(Exception, String, String, UInt32, Object)
Create an Error Object with the Innner Exception and other parameters
公共方法Error(UInt32, UInt32, String, String, UInt32)
Create an Error Object.
Top
属性
  名称说明
公共属性Arg
A string representing the argument supplied to an operator or function when an argument error occurs.
公共属性ArgNum
A numeric value representing the number of the argument supplied to an operator or function when an argument error occurs.
公共属性Args
An array of the arguments supplied to an operator or function when an argument error occurs.
公共属性ArgType
A numeric value representing the data type of the argument that raised the error.
公共属性ArgTypeReq
A numeric value representing the expected type of the argument that raised the error.
公共属性ArgTypeReqType
The system type representing the expected type of the argument that raised the error.
公共属性ArgTypeType
The system type representing the data type of the argument that raised the error.
公共属性CallFuncSym
A symbol representing the calling function of the function in which the error occurred.
公共属性CanDefault
A logical value indicating whether the subsystem can perform default error recovery for the error condition.
公共属性CanRetry
A logical value indicating whether the subsystem can retry the operation that caused the error condition.
公共属性CanSubstitute
A logical value indicating whether a new result can be substituted for the operation that produced the error condition.
公共属性Cargo
A value of any data type unused by the Error system. It is provided as a user-definable slot, allowing arbitrary information to be attached to an Error object and retrieved later
公共属性Description
A string that describes the error condition.
公共属性FileHandle
A numeric value representing the file handle supplied to a function when an file error occurs.
公共属性FileName
A string representing the name used to open the file associated with the error condition.
公共属性FuncPtr
A pointer to the function in which the error occurred.
公共属性FuncSym
A string representing the name of the function or method in which the error occurred.
公共属性Gencode
An integer numeric value representing a Visual Objects generic error code.
公共属性GenCodeText
An string containing the description of the Gencode.
公共属性MaxSize
A numeric value representing a boundary condition for an operation (such as string overflow or array bound error).
公共属性MethodSelf
An object representing the SELF of the method in which the error occurred.
公共属性Operation
A string that describes the operation being attempted when the error occurred.
公共属性OSCode
A value of 0 indicates that the error condition was not caused by an error from the operating system.
公共属性OSCodeText
Descripion of the OSCode
公共属性Severity
A constant indicating the severity of the error condition.
公共属性Stack
Call stack from the moment where the error object was created
公共属性StackTrace (重写 StackTrace.)
公共属性SubCode
An integer numeric value representing a subsystem-specific error code.
公共属性SubCodeText
An string containing the description of the SubCode.
公共属性SubstituteType
A numeric value representing the type of the new result that the error handler substitutes for the operation that produced the error condition.
公共属性SubSystem
A string representing the name of the subsystem generating the error.
公共属性Tries
An integer numeric value representing the number of times the failed operation has been attempted.
Top
方法
  名称说明
公共方法静态成员GetInnerException
公共方法SetStackTrace
公共方法Throw
Throw the error.
公共方法ToString
Creates and returns a string representation of the current exception.
(重写 ToString.)
Top
参见