public static ScimError ToScimError(this ScimPatchException exception) { return(new ScimError( GetStatusCode(exception), GetScimType(exception), GetDetail(exception))); }
private static string GetDetail(ScimPatchException exception) { return exception.ErrorType.Message; }
private static ScimErrorType GetScimType(ScimPatchException exception) { return exception.ErrorType; }
private static HttpStatusCode GetStatusCode(ScimPatchException exception) { return HttpStatusCode.BadRequest; }
private static string GetDetail(ScimPatchException exception) { return(exception.ErrorType.Message); }
private static ScimErrorType GetScimType(ScimPatchException exception) { return(exception.ErrorType); }
private static HttpStatusCode GetStatusCode(ScimPatchException exception) { return(HttpStatusCode.BadRequest); }