Table of Contents

Class JabraException

Namespace
Jabra.NET.Sdk.ToolsAndHelpers
Assembly
Jabra.NET.Sdk.dll

A custom exception which extends the base Exception class by adding a ErrorType property.

[Serializable]
public class JabraException : Exception, ISerializable
Inheritance
JabraException
Implements
Derived
Inherited Members

Constructors

JabraException()

public JabraException()

JabraException(SerializationInfo, StreamingContext)

protected JabraException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo
context StreamingContext

JabraException(string?)

public JabraException(string? message)

Parameters

message string

JabraException(string, ErrorType)

DEPRECATED Please use the other class constructors instead as ErrorType should no longer be used Initializes a new instance of the JabraException class. Construct a JabraException object.

[Obsolete("This constructor will be removed in future version of the SDK and is left for backward compatibility.")]
protected JabraException(string message, ErrorType type)

Parameters

message string

The error message of the exception.

type ErrorType

What caused the exception to be thrown.

JabraException(string?, Exception?)

public JabraException(string? message, Exception? innerException)

Parameters

message string
innerException Exception

JabraException(string?, Exception?, ErrorType)

[Obsolete("This constructor will be removed in future version of the SDK and is left for backward compatibility.")]
protected JabraException(string? message, Exception? innerException, ErrorType type)

Parameters

message string
innerException Exception
type ErrorType

Properties

Type

DEPRECATED Determines what caused the exception to be thrown. This will be removed in future versions of the SDK and exceptions will be subclassed instead.

[Obsolete("This property will be removed in future version of the SDK.")]
public ErrorType Type { get; }

Property Value

ErrorType

Methods

GetObjectData(SerializationInfo, StreamingContext)

public override void GetObjectData(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo
context StreamingContext

ToString()

public override string ToString()

Returns

string