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.
파일 보기
프로젝트 열기: crazycodr/standard-exceptions
공개 메소드들
메소드 상세
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 |
getHttpMessage()
공개 정적인 메소드