Advertisement
Guest User

Exceptions

a guest
Jul 30th, 2019
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement