/// <summary>
        /// Initializes a new instance of the <see cref="ResponseException"/> class with the
        /// specified error message and REST response.
        /// </summary>
        /// <param name="message">The message that describes the error.</param>
        /// <param name="response">The REST response.</param>
        public ResponseException(string message, RestResponse response)
            : base(message)
        {
            _state.Response = response;
#if !NET35
            SerializeObjectState += (ex, args) => args.AddSerializedState(_state);
#endif
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="ResponseException"/> class with the
        /// specified error message and REST response.
        /// </summary>
        /// <param name="message">The message that describes the error.</param>
        /// <param name="response">The REST response.</param>
        public ResponseException(string message, RestResponse response)
            : base(message)
        {
            _state.Response = response;
#if !NET35
            SerializeObjectState += (ex, args) => args.AddSerializedState(_state);
#endif
        }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ServiceUnavailableException"/> class with the
 /// specified REST response.
 /// </summary>
 /// <param name="response">The REST response.</param>
 public ServiceUnavailableException(RestResponse response)
     : base("The service is currently unavailable. Please try again later.", response)
 {
 }
 public BadServiceRequestException(string message, JSIStudios.SimpleRESTServices.Client.Response response) : base(message, response)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MethodNotImplementedException"/> class with the
 /// specified REST response.
 /// </summary>
 /// <param name="response">The REST response.</param>
 public MethodNotImplementedException(RestResponse response)
     : base("The requested method is not implemented at the service.", response)
 {
 }
Example #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ServiceLimitReachedException"/> class with the
 /// specified error message and REST response.
 /// </summary>
 /// <param name="message">The message that describes the error.</param>
 /// <param name="response">The REST response.</param>
 public ServiceLimitReachedException(string message, RestResponse response)
     : base(message, response)
 {
 }
Example #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ServiceConflictException"/> class with the
 /// specified error message and REST response.
 /// </summary>
 /// <param name="message">The message that describes the error.</param>
 /// <param name="response">The REST response.</param>
 public ServiceConflictException(string message, RestResponse response)
     : base(message, response)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="BadServiceRequestException"/> class with the
 /// specified error message and REST response.
 /// </summary>
 /// <param name="message">The message that describes the error.</param>
 /// <param name="response">The REST response.</param>
 public BadServiceRequestException(string message, RestResponse response)
     : base(message, response)
 {
 }
Example #9
0
 public ServiceLimitReachedException(string message, JSIStudios.SimpleRESTServices.Client.Response response) : base(message, response)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ResponseException"/> class with the
 /// specified error message and REST response.
 /// </summary>
 /// <param name="message">The message that describes the error.</param>
 /// <param name="response">The REST response.</param>
 public ResponseException(string message, RestResponse response)
     : base(message)
 {
     Response = response;
 }
Example #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ItemNotFoundException"/> class with the
 /// specified REST response.
 /// </summary>
 /// <param name="response">The REST response.</param>
 public ItemNotFoundException(RestResponse response)
     : base("The item was not found or does not exist.", response)
 {
 }
Example #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserNotAuthorizedException"/> class with the
 /// specified REST response.
 /// </summary>
 /// <param name="response">The REST response.</param>
 public UserNotAuthorizedException(RestResponse response)
     : base("Unable to authenticate user and retrieve authorized service endpoints", response)
 {
 }
Example #13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserNotAuthorizedException"/> class with the
 /// specified error message and REST response.
 /// </summary>
 /// <param name="message">The message that describes the error.</param>
 /// <param name="response">The REST response.</param>
 public UserNotAuthorizedException(string message, RestResponse response)
     : base(message, response)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ServiceConflictException"/> class with the
 /// specified error message and REST response.
 /// </summary>
 /// <param name="message">The message that describes the error.</param>
 /// <param name="response">The REST response.</param>
 public ServiceConflictException(string message, RestResponse response)
     : base(message, response)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ServiceConflictException"/> class with the
 /// specified REST response.
 /// </summary>
 /// <param name="response">The REST response.</param>
 public ServiceConflictException(RestResponse response)
     : base("There was a conflict with the service. Entity may already exist.", response)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MethodNotImplementedException"/> class with the
 /// specified error message and REST response.
 /// </summary>
 /// <param name="message">The message that describes the error.</param>
 /// <param name="response">The REST response.</param>
 public MethodNotImplementedException(string message, RestResponse response)
     : base(message, response)
 {
 }
 public MethodNotImplementedException(string message, JSIStudios.SimpleRESTServices.Client.Response response) : base(message, response)
 {
 }
Example #18
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ItemNotFoundException"/> class with the
 /// specified error message and REST response.
 /// </summary>
 /// <param name="message">The message that describes the error.</param>
 /// <param name="response">The REST response.</param>
 public ItemNotFoundException(string message, RestResponse response)
     : base(message, response)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="UserNotAuthorizedException"/> class with the
 /// specified error message and REST response.
 /// </summary>
 /// <param name="message">The message that describes the error.</param>
 /// <param name="response">The REST response.</param>
 public UserNotAuthorizedException(string message, RestResponse response)
     : base(message, response)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ServiceFaultException"/> class with the
 /// specified REST response.
 /// </summary>
 /// <param name="response">The REST response.</param>
 public ServiceFaultException(RestResponse response)
     : base("There was an unhandled error at the service endpoint.  Please try again later.", response)
 {
 }
Example #21
0
 public ServiceLimitReachedException(JSIStudios.SimpleRESTServices.Client.Response response) : base("The service rate limit has been reached.  Either request a service limit increase or wait until the limit resets.", response)
 {
 }
Example #22
0
 public ResponseException(string message, JSIStudios.SimpleRESTServices.Client.Response response)
     : base(message)
 {
     Response = response;
 }
Example #23
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ServiceLimitReachedException"/> class with the
 /// specified REST response.
 /// </summary>
 /// <param name="response">The REST response.</param>
 public ServiceLimitReachedException(RestResponse response)
     : base("The service rate limit has been reached. Either request a service limit increase or wait until the limit resets.", response)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ResponseException"/> class with the
 /// specified error message and REST response.
 /// </summary>
 /// <param name="message">The message that describes the error.</param>
 /// <param name="response">The REST response.</param>
 public ResponseException(string message, RestResponse response)
     : base(message)
 {
     Response = response;
 }
Example #25
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ServiceConflictException"/> class with the
 /// specified REST response.
 /// </summary>
 /// <param name="response">The REST response.</param>
 public ServiceConflictException(RestResponse response)
     : base("There was a conflict with the service. Entity may already exist.", response)
 {
 }
 public ServiceConflictException(JSIStudios.SimpleRESTServices.Client.Response response) : base("There was a conflict with the service.  Entity may already exist.", response)
 {
 }
 public BadServiceRequestException(JSIStudios.SimpleRESTServices.Client.Response response) : base("Unable to process the service request.  Please try again later.", response)
 {
 }
Example #28
0
 public ServiceUnavailableException(JSIStudios.SimpleRESTServices.Client.Response response) : base("The service is currently unavailable. Please try again later.", response)
 {
 }
Example #29
0
 public ServiceFaultException(JSIStudios.SimpleRESTServices.Client.Response response) : base("There was an unhandled error at the service endpoint.  Please try again later.", response)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ServiceFaultException"/> class with the
 /// specified REST response.
 /// </summary>
 /// <param name="response">The REST response.</param>
 public ServiceFaultException(RestResponse response)
     : base("There was an unhandled error at the service endpoint.  Please try again later.", response)
 {
 }
 public ResponseException(string message, JSIStudios.SimpleRESTServices.Client.Response response)
     : base(message)
 {
     Response = response;
 }
 public UserNotAuthorizedException(string message, JSIStudios.SimpleRESTServices.Client.Response response) : base(message, response)
 {
 }
Example #33
0
 public ServiceUnavailableException(string message, JSIStudios.SimpleRESTServices.Client.Response response) : base(message, response)
 {
 }
 public UserNotAuthorizedException(JSIStudios.SimpleRESTServices.Client.Response response) : base("Unable to authenticate user and retrieve authorized service endpoints", response)
 {
 }
Example #35
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ServiceUnavailableException"/> class with the
 /// specified error message and REST response.
 /// </summary>
 /// <param name="message">The message that describes the error.</param>
 /// <param name="response">The REST response.</param>
 public ServiceUnavailableException(string message, RestResponse response)
     : base(message, response)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="BadServiceRequestException"/> class with the
 /// specified REST response.
 /// </summary>
 /// <param name="response">The REST response.</param>
 public BadServiceRequestException(RestResponse response)
     : base("Unable to process the service request.  Please try again later.", response)
 {
 }
 public MethodNotImplementedException(JSIStudios.SimpleRESTServices.Client.Response response) : base("The requested method is not implemented at the service.", response)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="UserNotAuthorizedException"/> class with the
 /// specified REST response.
 /// </summary>
 /// <param name="response">The REST response.</param>
 public UserNotAuthorizedException(RestResponse response)
     : base("Unable to authenticate user and retrieve authorized service endpoints", response)
 {
 }