public ScimPatchException( ScimErrorType errorType, Operation operation) { ErrorType = errorType; FailedOperation = operation; }
public ScimError( HttpStatusCode status, ScimErrorType scimType = null, string detail = null) { _Schemas = new[] { ScimConstants.Messages.Error }; Status = status; ScimType = scimType; Detail = detail; }
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { string value = reader.Value as string; if (value == null) { return(null); } ScimErrorType error = (ScimErrorType)value; return(error); }
/// <summary> /// Use this to control the type of response status returned to client. /// </summary> /// <param name="statusCode">HTTP response status code</param> /// <param name="detail">body text as raw string</param> /// <param name="errorType">Only applicable for status=400</param> public ScimException(HttpStatusCode statusCode, string detail, ScimErrorType errorType = null) { ScimError = new ScimError(statusCode, errorType, detail); }