ErrorException::__construct
Predefined Interfaces
ErrorException
PHP Manual

# ErrorException::getSeverity

(PHP 5 >= 5.1.0)

ErrorException::getSeverity — Gets the exception severity

### 설명

final public int ErrorException::getSeverity ( void )

Returns the severity of the exception.

### 인수

이 함수는 인수가 없습니다.

### 반환값

Returns the severity level of the exception.

### 예제

Example #1 ErrorException::getSeverity() example

`<?php
try {
throw new ErrorException("Exception message", 0, 75);
} catch(ErrorException $e) {
echo "This exception severity is: " . $e->getSeverity();
}
?>`

위 예제의 출력 예시:

    This exception severity is: 75

ErrorException::__construct
Predefined Interfaces
ErrorException
PHP Manual