Added base Exception class for ORM namespace