Advertisement
RockField64

exceptions

Oct 26th, 2021
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.42 KB | None | 0 0
  1. class NumberFormatException : Exception
  2.         {
  3.             public NumberFormatException (string qty) : base(qty) { }
  4.         }
  5.         class StringFormatException : Exception
  6.         {
  7.             public StringFormatException (string name) : base (name) { }
  8.         }
  9.         class CurrencyFormatException : Exception
  10.         {
  11.             public CurrencyFormatException (string price) : base (price) { }
  12.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement