Like \Exception::getCode(), but a string code.
public function getType() {
return $this->type;
}
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wporg-requests-exception/gettype