Class FacebookApiException
- Namespace
- 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
SerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
context
StreamingContextThe 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
stringThe message.
FacebookApiException(string, Exception)
Initializes a new instance of the FacebookApiException class.
public FacebookApiException(string message, Exception innerException)
Parameters
FacebookApiException(string, string)
Initializes a new instance of the FacebookApiException class.
public FacebookApiException(string message, string errorType)
Parameters
FacebookApiException(string, string, int)
Initializes a new instance of the FacebookApiException class.
public FacebookApiException(string message, string errorType, int errorCode)
Parameters
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
stringThe message.
errorType
stringType of the error.
errorCode
intCode of the error.
errorSubcode
intSubcode 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.