Class BrokerException
- Namespace
- OpenServiceBroker.Errors
- Assembly
- OpenServiceBroker.Model.dll
The request to the Service Broker failed.
public class BrokerException : Exception, ISerializable
- Inheritance
-
BrokerException
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
BrokerException(string, string, HttpStatusCode)
The request to the Service Broker failed.
public BrokerException(string message, string errorCode, HttpStatusCode httpCode = HttpStatusCode.UnprocessableContent)
Parameters
message
stringerrorCode
stringhttpCode
HttpStatusCode
Properties
ErrorCode
public string ErrorCode { get; }
Property Value
HttpCode
public HttpStatusCode HttpCode { get; }
Property Value
InstanceUsable
If an update or deprovisioning operation failed, this flag indicates whether or not the Service Instance is still usable. If true, the Service Instance can still be used, false otherwise. This field MUST NOT be present for errors of other operations. Defaults to true.
public bool? InstanceUsable { get; set; }
Property Value
- bool?
UpdateRepeatable
If an update operation failed, this flag indicates whether this update can be repeated or not. If true, the same update operation MAY be repeated and MAY succeed; if false, repeating the same update operation will fail again. This field MUST NOT be present for errors of other operations. Defaults to true.
public bool? UpdateRepeatable { get; set; }
Property Value
- bool?
Methods
FromResponse(Error, HttpStatusCode)
Deserializes the exception from an error response object.
public static BrokerException FromResponse(Error dto, HttpStatusCode statusCode)
Parameters
dto
ErrorstatusCode
HttpStatusCode
Returns
ToResponse()
Serializes the exception to an error response object.
public Error ToResponse()