- Fixed the exception thrown

This commit is contained in:
Dave Mc Nicoll 2021-10-19 12:44:44 +00:00
parent 61fa5d220e
commit 14d6a0d10a
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class ObjectResolver {
} }
} }
throw new \TypeError("Annotation `$className` could not be found within your object `{$this->objectClass}`"); throw new \Exception("Annotation `$className` could not be found within your object `{$this->objectClass}`");
} }
else { else {
throw new \InvalidArgumentException("Class `$className` was not found within {$this->objectClass} uses statement (or it's children / traits)"); throw new \InvalidArgumentException("Class `$className` was not found within {$this->objectClass} uses statement (or it's children / traits)");