Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.73 KB | None | 0 0
  1. using System;
  2.  
  3. namespace VideoGalore.Models.Error
  4. {
  5.     public abstract class Exceptions : Exception
  6.     {
  7.         public Exceptions (String message) : base(message){
  8.            
  9.         }
  10.     }
  11.  
  12.     public class UserNotFoundException : Exceptions
  13.     {
  14.         public UserNotFoundException() : base("No user with that id found")
  15.         {
  16.  
  17.         }
  18.  
  19.         public UserNotFoundException(string message) : base(message)
  20.         {
  21.  
  22.         }
  23.     }
  24.  
  25.     public class TapeNotFoundException : Exceptions
  26.     {
  27.         public TapeNotFoundException() : base("No tape with that id found")
  28.         {
  29.  
  30.         }
  31.  
  32.         public TapeNotFoundException(string message) : base(message)
  33.         {
  34.  
  35.         }
  36.     }
  37.  
  38.  
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement