Example #1
0
 public ScimPatchException(
     ScimErrorType errorType,
     Operation operation)
 {
     ErrorType       = errorType;
     FailedOperation = operation;
 }
Example #2
0
 public ScimPatchException(
     ScimErrorType errorType,
     Operation operation)
 {
     ErrorType = errorType;
     FailedOperation = operation;
 }
Example #3
0
 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);
        }
Example #5
0
 /// <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);
 }
Example #6
0
 /// <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);
 }