EnableQueryAttribute.CreateErrorResponse(String, Exception) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오류 응답을 만듭니다.
public static Microsoft.AspNetCore.Mvc.SerializableError CreateErrorResponse (string message, Exception exception = default);
static member CreateErrorResponse : string * Exception -> Microsoft.AspNetCore.Mvc.SerializableError
Public Shared Function CreateErrorResponse (message As String, Optional exception As Exception = Nothing) As SerializableError
매개 변수
- message
- String
오류의 메시지입니다.
- exception
- Exception
오류 예외(있는 경우)입니다.
반환
SerializableError입니다.
설명
이 함수는 재귀적입니다.