Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.90 KB | None | 0 0
  1. using System;
  2. using System.Runtime.Serialization;
  3.  
  4. namespace GameBoard.LogicLayer.GameEventParticipations.Exceptions
  5. {
  6.     [Serializable]
  7.     public class GameEventParticipationException : Exception
  8.     {
  9.         public GameEventParticipationException()
  10.         {
  11.         }
  12.  
  13.         public GameEventParticipationException(string message) : base(message)
  14.         {
  15.         }
  16.  
  17.         public GameEventParticipationException(string message, Exception innerException)
  18.             : base(message, innerException)
  19.         {
  20.         }
  21.  
  22.         // Required by the serializable pattern. When adding stuff to this class consult:
  23.         // https://blogs.msdn.microsoft.com/agileer/2013/05/17/the-correct-way-to-code-a-custom-exception-class/.
  24.         protected GameEventParticipationException(SerializationInfo info, StreamingContext context)
  25.             : base(info, context)
  26.         {
  27.         }
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement