Created new exceptions and new exception handling.