PHP 클래스 sspmod_saml_Error, simplesamlphp

상속: extends SimpleSAML_Error_Exception
파일 보기 프로젝트 열기: simplesamlphp/simplesamlphp 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $status, string | null $subStatus = NULL, string | null $statusMessage = NULL, Exception $cause = NULL ) Create a SAML 2 error.
fromException ( Exception $exception ) : sspmod_saml_Error Create a SAML2 error from an exception.
getStatus ( ) : string Get the top-level status code.
getStatusMessage ( ) : string | null Get the status message.
getSubStatus ( ) : string | null Get the second-level status code.
toException ( ) : SimpleSAML_Error_Exception Create a normal exception from a SAML2 error.

비공개 메소드들

메소드 설명
shortStatus ( string $status ) : string Create a short version of the status code.

메소드 상세

__construct() 공개 메소드

Create a SAML 2 error.
public __construct ( string $status, string | null $subStatus = NULL, string | null $statusMessage = NULL, Exception $cause = NULL )
$status string The top-level status code.
$subStatus string | null The second-level status code. Can be NULL, in which case there is no second-level status code.
$statusMessage string | null The status message. Can be NULL, in which case there is no status message.
$cause Exception The cause of this exception. Can be NULL.

fromException() 공개 정적인 메소드

This function attempts to create a SAML2 error with the appropriate status codes from an arbitrary exception.
public static fromException ( Exception $exception ) : sspmod_saml_Error
$exception Exception The original exception.
리턴 sspmod_saml_Error The new exception.

getStatus() 공개 메소드

Get the top-level status code.
public getStatus ( ) : string
리턴 string The top-level status code.

getStatusMessage() 공개 메소드

Get the status message.
public getStatusMessage ( ) : string | null
리턴 string | null The status message or NULL if no status message is present.

getSubStatus() 공개 메소드

Get the second-level status code.
public getSubStatus ( ) : string | null
리턴 string | null The second-level status code or NULL if no second-level status code is present.

toException() 공개 메소드

This function attempts to reverse the operation of the fromException() function. If it is unable to create a more specific exception, it will return the current object.
또한 보기: sspmod_saml_Error::fromException()
public toException ( ) : SimpleSAML_Error_Exception
리턴 SimpleSAML_Error_Exception An exception representing this error.