0
내 컨트롤러에서 아래에 금지 된 ResponseException을 던지려고 할 때. "HTTP 요청 처리 중 예외가 발생했습니다. 자세한 내용은이 예외의 '응답'속성에서 반환 된 HTTP 응답을 참조하십시오." 제어기 메소드의 catch 블록에 catch됩니다. 그냥이 HttpResponseException의 경우-던져 다시 컨트롤러 구현을 변경하려면이httpResponseException을 throw 할 수 없습니다.
throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Forbidden));
어디에서 예외를 throw합니까? –
내 모델 클래스에서이 예외를 throw합니다. – Mohan