PHP 클래스 Exceptions\Http\Client\UnsupportedMediaTypeException

Never throw an exception at the user, always catch it can synthesize it to a correct html response with appropriate headers. You can use the constants and accessor to get HTML values to return.
저자: Mathieu Dumoulin aka CrazyCodr ([email protected])
상속: extends ClientErrorException
파일 보기 프로젝트 열기: crazycodr/standard-exceptions

공개 메소드들

메소드 설명
__construct ( string $message = self::HTTP_MESSAGE, integer $code = self::HTTP_CODE, null $previous = null ) UnsupportedMediaTypeException constructor.
getHttpCode ( )
getHttpMessage ( )

메소드 상세

__construct() 공개 메소드

UnsupportedMediaTypeException constructor.
public __construct ( string $message = self::HTTP_MESSAGE, integer $code = self::HTTP_CODE, null $previous = null )
$message string Error message (HTTP) that defines this exception
$code integer Error code (HTTP) that defines this exception
$previous null Inner/Previous exception that triggered this exception

getHttpCode() 공개 정적인 메소드

public static getHttpCode ( )

getHttpMessage() 공개 정적인 메소드

public static getHttpMessage ( )