Table of Contents

Class FacebookApiException

Namespace
Facebook
Assembly
Facebook.dll

Represent errors that occur while calling a Facebook API.

public class FacebookApiException : Exception, ISerializable
Inheritance
FacebookApiException
Implements
Derived
Inherited Members

Constructors

FacebookApiException()

Initializes a new instance of the FacebookApiException class.

public FacebookApiException()

FacebookApiException(SerializationInfo, StreamingContext)

Initializes a new instance of the FacebookApiException class.

protected FacebookApiException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Exceptions

ArgumentNullException

The info parameter is null.

SerializationException

The class name is null or HResult is zero (0).

FacebookApiException(string)

Initializes a new instance of the FacebookApiException class.

public FacebookApiException(string message)

Parameters

message string

The message.

FacebookApiException(string, Exception)

Initializes a new instance of the FacebookApiException class.

public FacebookApiException(string message, Exception innerException)

Parameters

message string

The message.

innerException Exception

The inner exception.

FacebookApiException(string, string)

Initializes a new instance of the FacebookApiException class.

public FacebookApiException(string message, string errorType)

Parameters

message string

The message.

errorType string

Type of the error.

FacebookApiException(string, string, int)

Initializes a new instance of the FacebookApiException class.

public FacebookApiException(string message, string errorType, int errorCode)

Parameters

message string

The message.

errorType string

Type of the error.

errorCode int

Code of the error.

FacebookApiException(string, string, int, int)

Initializes a new instance of the FacebookApiException class.

public FacebookApiException(string message, string errorType, int errorCode, int errorSubcode)

Parameters

message string

The message.

errorType string

Type of the error.

errorCode int

Code of the error.

errorSubcode int

Subcode of the error.

Properties

ErrorCode

Gets or sets the code of the error.

public int ErrorCode { get; set; }

Property Value

int

The code of the error.

ErrorSubcode

Gets or sets the error subcode.

public int ErrorSubcode { get; set; }

Property Value

int

The code of the error subcode.

ErrorType

Gets or sets the type of the error.

public string ErrorType { get; set; }

Property Value

string

The type of the error.