Supported Versions: PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
Checks whether the object is of a given type or subtype
<?php is_a(mixed $object_or_class, string $class, bool $allow_string = false): bool
<?php     public function getExceptionMessage(Throwable $throwable): string

    {

        if (is_a($throwable->className(), FrameworkException::class, true)) {

            return $throwable->message();

        }