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


版本号 #2
由 壳壳虫 创建于 2026-10-31 17:45:51 UTC
由 壳壳虫 更新于 2026-10-31 17:45:52 UTC