This is a binary base file, if you want the exception to be meaningful in terms of class parameter, then get_class() should be used.