title: How can I write custom Exceptions?
body: <p>How can I create a new <code>Exception</code> different from the pre-made types?</p>
  
  <pre><code>public class InvalidBankFeeAmountException extends Exception{
      public InvalidBankFeeAmountException(String message){
          super(message);
      }
   }
  </code></pre>
  
  <p>It will show the warning for the <strong>InvalidBankFeeAmountException</strong> which is written in the first line.</p>