C# 클래스 NContext.Extensions.AspNet.WebApi.ErrorHandling.HttpParameterValidationError

Defines validation-related errors.
상속: NContext.ErrorHandling.ErrorBase
파일 보기 프로젝트 열기: PowerDMS/NContext

공개 메소드들

메소드 설명
RequiredParameterNotFoundInBody ( Type parameterType, String parameterName ) : HttpParameterValidationError

The required resource parameter '{0}' of type '{1}' could not be found within the request body for validation.

ValidationFailed ( String parameterName, Object requiredParameterValue, Object bodyPropertyValue ) : HttpParameterValidationError

The required resource parameter '{0}' with value '{1}' does not match the value set in the request body: '{2}'.

비공개 메소드들

메소드 설명
HttpParameterValidationError ( String localizationKey, HttpStatusCode httpStatusCode, String code ) : System

메소드 상세

RequiredParameterNotFoundInBody() 공개 정적인 메소드

The required resource parameter '{0}' of type '{1}' could not be found within the request body for validation.
public static RequiredParameterNotFoundInBody ( Type parameterType, String parameterName ) : HttpParameterValidationError
parameterType System.Type Type of the parameter.
parameterName String Name of the parameter.
리턴 HttpParameterValidationError

ValidationFailed() 공개 정적인 메소드

The required resource parameter '{0}' with value '{1}' does not match the value set in the request body: '{2}'.
public static ValidationFailed ( String parameterName, Object requiredParameterValue, Object bodyPropertyValue ) : HttpParameterValidationError
parameterName String Name of the parameter.
requiredParameterValue Object The required parameter value.
bodyPropertyValue Object The body property value.
리턴 HttpParameterValidationError