ImageGear v26.5 - Updated
ImageGear.Core Assembly / ImageGear.Core Namespace / ImGearException Class / ThrowError Method / ThrowError(ImGearErrorCodes,String,Int32,Int32) Method
Numeric code of error from ImGearErrorCodes enumeration.
Human readable information about reason of exception.
Integer data of the Value1 supplied to error code. Its meaning depends on reason of exception.
Integer data of the Value2 supplied to error code. Its meaning depends on reason of exception.




In This Topic
    ThrowError(ImGearErrorCodes,String,Int32,Int32) Method
    In This Topic
    Throws exception of ImGearException class.
    Syntax
    'Declaration
     
    Public Overloads Shared Sub ThrowError( _
       ByVal errorCode As ImGearErrorCodes, _
       ByVal description As String, _
       ByVal value1 As Integer, _
       ByVal value2 As Integer _
    ) 
    'Usage
     
    Dim errorCode As ImGearErrorCodes
    Dim description As String
    Dim value1 As Integer
    Dim value2 As Integer
     
    ImGearException.ThrowError(errorCode, description, value1, value2)
    public static void ThrowError( 
       ImGearErrorCodes errorCode,
       string description,
       int value1,
       int value2
    )
    public: static void ThrowError( 
       ImGearErrorCodes errorCode,
       string* description,
       int value1,
       int value2
    ) 
    public:
    static void ThrowError( 
       ImGearErrorCodes errorCode,
       String^ description,
       int value1,
       int value2
    ) 

    Parameters

    errorCode
    Numeric code of error from ImGearErrorCodes enumeration.
    description
    Human readable information about reason of exception.
    value1
    Integer data of the Value1 supplied to error code. Its meaning depends on reason of exception.
    value2
    Integer data of the Value2 supplied to error code. Its meaning depends on reason of exception.
    See Also