C# Class PhotoSharingApp.AppService.ServiceCore.ServiceExceptions

Provides exceptions for the App Service.
Datei anzeigen Open project: Microsoft/Appsample-Photosharing

Public Methods

Method Description
DataLayerException ( string details ) : System.Web.Http.HttpResponseException

Returns exception when there is an exception calling data layer.

DuplicateCategoryException ( string details ) : System.Web.Http.HttpResponseException

Returns exception when a duplicate category is found during category creation.

IapValidationException ( string details ) : System.Web.Http.HttpResponseException

Returns exception when the Iap validation fails.

IdMismatchException ( string pathArgumentId, string requestId ) : System.Web.Http.HttpResponseException

Returns an exception wrapping a fault response indicating that the Uri Id and the request body Id differ.

NotAllowed ( ) : System.Web.Http.HttpResponseException

Returns exception when the current user isn't allowed to perform this operation.

UnknownInternalFailureException ( string faultSource ) : System.Web.Http.HttpResponseException

Returns an exception wrapping a fault response indicating that an unknown internal failure occurred.

UserBalanceTooLow ( ) : System.Web.Http.HttpResponseException

Returns exception when the current operation will overdraw user balance.

UserNullException ( ) : System.Web.Http.HttpResponseException

Returns exception when the current authenticated user fetched from Azure Mobile Service is null.

Method Details

DataLayerException() public static method

Returns exception when there is an exception calling data layer.
public static DataLayerException ( string details ) : System.Web.Http.HttpResponseException
details string Fault inner message.
return System.Web.Http.HttpResponseException

DuplicateCategoryException() public static method

Returns exception when a duplicate category is found during category creation.
public static DuplicateCategoryException ( string details ) : System.Web.Http.HttpResponseException
details string Fault inner message.
return System.Web.Http.HttpResponseException

IapValidationException() public static method

Returns exception when the Iap validation fails.
public static IapValidationException ( string details ) : System.Web.Http.HttpResponseException
details string Fault message.
return System.Web.Http.HttpResponseException

IdMismatchException() public static method

Returns an exception wrapping a fault response indicating that the Uri Id and the request body Id differ.
public static IdMismatchException ( string pathArgumentId, string requestId ) : System.Web.Http.HttpResponseException
pathArgumentId string Id from the Uri path argument.
requestId string Id from the request body.
return System.Web.Http.HttpResponseException

NotAllowed() public static method

Returns exception when the current user isn't allowed to perform this operation.
public static NotAllowed ( ) : System.Web.Http.HttpResponseException
return System.Web.Http.HttpResponseException

UnknownInternalFailureException() public static method

Returns an exception wrapping a fault response indicating that an unknown internal failure occurred.
public static UnknownInternalFailureException ( string faultSource ) : System.Web.Http.HttpResponseException
faultSource string Source to use when creating ServiceFaults.
return System.Web.Http.HttpResponseException

UserBalanceTooLow() public static method

Returns exception when the current operation will overdraw user balance.
public static UserBalanceTooLow ( ) : System.Web.Http.HttpResponseException
return System.Web.Http.HttpResponseException

UserNullException() public static method

Returns exception when the current authenticated user fetched from Azure Mobile Service is null.
public static UserNullException ( ) : System.Web.Http.HttpResponseException
return System.Web.Http.HttpResponseException