Defind a base custom-exception class.
Created two custom exceptions.