C# Класс PhotoSharingApp.AppService.ServiceCore.ServiceExceptions

Provides exceptions for the App Service.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

DataLayerException() публичный статический Метод

Returns exception when there is an exception calling data layer.
public static DataLayerException ( string details ) : System.Web.Http.HttpResponseException
details string Fault inner message.
Результат System.Web.Http.HttpResponseException

DuplicateCategoryException() публичный статический Метод

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.
Результат System.Web.Http.HttpResponseException

IapValidationException() публичный статический Метод

Returns exception when the Iap validation fails.
public static IapValidationException ( string details ) : System.Web.Http.HttpResponseException
details string Fault message.
Результат System.Web.Http.HttpResponseException

IdMismatchException() публичный статический Метод

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.
Результат System.Web.Http.HttpResponseException

NotAllowed() публичный статический Метод

Returns exception when the current user isn't allowed to perform this operation.
public static NotAllowed ( ) : System.Web.Http.HttpResponseException
Результат System.Web.Http.HttpResponseException

UnknownInternalFailureException() публичный статический Метод

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.
Результат System.Web.Http.HttpResponseException

UserBalanceTooLow() публичный статический Метод

Returns exception when the current operation will overdraw user balance.
public static UserBalanceTooLow ( ) : System.Web.Http.HttpResponseException
Результат System.Web.Http.HttpResponseException

UserNullException() публичный статический Метод

Returns exception when the current authenticated user fetched from Azure Mobile Service is null.
public static UserNullException ( ) : System.Web.Http.HttpResponseException
Результат System.Web.Http.HttpResponseException