My Project  0.10.0
Windows SDK for Facebook
Public Member Functions | Static Public Member Functions | Properties | List of all members
winsdkfb::FBError Class Reference

class wrapper for FB error responses. For the time being, this is a very bare shell around the error response URL from Facebook, and not a full-blown error class such as exists in the Facebook SDK for iOS. More...

#include <FacebookError.h>

Public Member Functions

 FBError (int Code, Platform::String^ Type, Platform::String^ Message)
 

Static Public Member Functions

static FBErrorFromUri (Windows::Foundation::Uri^ ResponseUri)
 
static FBErrorFromJson (Platform::String^ JsonText)
 

Properties

Platform::String^  Message [get]
 Error message string.
 
Platform::String^  Type [get]
 Error type string.
 
int Code [get]
 Error code.
 
int Subcode [get]
 Error subcode.
 
Platform::String^  ErrorUserTitle [get]
 Error user title.
 
Platform::String^  ErrorUserMessage [get]
 Error user message.
 

Detailed Description

class wrapper for FB error responses. For the time being, this is a very bare shell around the error response URL from Facebook, and not a full-blown error class such as exists in the Facebook SDK for iOS.

Member Function Documentation

FBError FBError::FromJson ( Platform::String^  JsonText)
static

Tries to instantiate an FBError object from a JSON formatted string.

Parameters
JsonTextJSON string to extract error information from.
Returns
FBError object encapsulating the JSON string error data. Will return nullptr if JsonText is not properly formatted JSON or if it doesn't contain an error.
FBError FBError::FromUri ( Windows::Foundation::Uri^  ResponseUri)
static

Tries to instantiate an FBError object based off of a response URI from Facebook.

Parameters
ResponseUriResponse URI to extract error information from.
Returns
FBError object encapsulating error data from the URI. Will return nullptr if the URI doesn't contain an error.

The documentation for this class was generated from the following files: