New Custom exception classes and better BSI error handling