Fixed access to undefined methods in exception classes