2
다른 컨트롤러가 상속 한 기본 컨트롤러 클래스에서 다음을 가지고 있습니다.HandleError - 오류 페이지에 예외 메시지를 표시하는 방법은 무엇입니까?
[HandleError(ExceptionType = typeof(NotFoundException), View = "NotFound")]
[HandleError(ExceptionType = typeof(UnauthorisedException), View = "Unauthorised")]
보기에 예외 메시지를 추가하고 싶습니다. 예를 들어 예외를 던질 때 예를 들어 :
throw new NotFoundException("This record was not found");
어떻게 든이 메시지를 잡고 NotFound보기에 삽입 할 수 있습니다.