C# Class PhotoSharingApp.AppService.ServiceCore.ServiceExceptions

Provides exceptions for the App Service.
Afficher le fichier Open project: Microsoft/Appsample-Photosharing

Méthodes publiques

Méthode 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 méthode

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

DuplicateCategoryException() public static méthode

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.
Résultat System.Web.Http.HttpResponseException

IapValidationException() public static méthode

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

IdMismatchException() public static méthode

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.
Résultat System.Web.Http.HttpResponseException

NotAllowed() public static méthode

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

UnknownInternalFailureException() public static méthode

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.
Résultat System.Web.Http.HttpResponseException

UserBalanceTooLow() public static méthode

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

UserNullException() public static méthode

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