跳转到主要内容

getcode

Throwable::getCode

Gets the exception code

ENTITY

public

int

Throwable::getCode

Returns the error code associated with the thrown object.

ENTITY ENTITY

ENTITY

Returns the exception code as int in Exception but possibly as other type in Exception descendants (for example as string in PDOException).

ENTITY

Exception::getCode