Guest User

Exceptions

a guest
Jul 30th, 2019
150
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4.  
  5. namespace PizzaCalories
  6. {
  7. public static class Exceptions
  8. {
  9. public static string InvalidDoughTypeException = "Invalid type of dough.";
  10.  
  11. public static string InvalidDoughWeightException = "Dough weight should be in the range [1..200]";
  12.  
  13. public static string InvalidToppingNameException = "Cannot place {0} on top of your pizza.";
  14.  
  15. public static string InvalidToppingWeightException = "{0} should be in the range [1..50].";
  16.  
  17. public static string InvalidPizzaNameException = "Pizza name should be between 1 and 15 symbols.";
  18.  
  19. public static string InvalidToppingCountException = "Number of toppings should be in range [0..10].";
  20. }
  21. }
RAW Paste Data