Adding new Exceptions for Error and Warning