示例#1
0
 public CallLogArgumentException(DateTime value)
 {
     Message = string.Join(string.Empty, "Incorrect value: '", value, "'. Date can't be longer than the current time.");
     if (InnerException != null)
     {
         ProgramLog.Exception(InnerException.Message);
     }
     ProgramLog.Exception(Message);
 }
示例#2
0
 public CallLogArgumentException(string message) : base(message)
 {
     Message = message;
     if (InnerException != null)
     {
         ProgramLog.Exception(InnerException.Message);
     }
     ProgramLog.Exception(message);
 }
示例#3
0
 public CallLogArgumentException(int value)
 {
     Message = string.Join(string.Empty, "Incorrect value: '", value, "'. The value should be no more than 30.");
     if (InnerException != null)
     {
         ProgramLog.Exception(InnerException.Message);
     }
     ProgramLog.Exception(Message);
 }
示例#4
0
 public CallLogArgumentException(double value)
 {
     Message = string.Join(string.Empty, "Incorrect value: '", value, "'. Cost can't be less than zero.");
     if (InnerException != null)
     {
         ProgramLog.Exception(InnerException.Message);
     }
     ProgramLog.Exception(Message);
 }
示例#5
0
 public DisconnectTerminalException()
 {
     Message = "The port is not used.";
     if (InnerException != null)
     {
         ProgramLog.Exception(InnerException.Message);
     }
     ProgramLog.Exception(Message);
 }
示例#6
0
 public FreePortNotFoundException()
 {
     Message = "No ports available.";
     if (InnerException != null)
     {
         ProgramLog.Exception(InnerException.Message);
     }
     ProgramLog.Exception(Message);
 }
 public ConnectTerminalException()
 {
     Message = "The port is already in use.";
     if (InnerException != null)
     {
         ProgramLog.Exception(InnerException.Message);
     }
     ProgramLog.Exception(Message);
 }
 public GeneralizedException(string message) : base(message)
 {
     Message = message;
     if (InnerException != null)
     {
         ProgramLog.Exception(InnerException.Message);
     }
     ProgramLog.Exception(Message);
 }
示例#9
0
 public PortArgumentOutOfRangeException(int initialEntry, int finalEntry)
 {
     Message = string.Join(string.Empty, "Incorrect value for range: '[", initialEntry, "; ", finalEntry, "]'. The value is in the range of existing ports.");
     if (InnerException != null)
     {
         ProgramLog.Exception(InnerException.Message);
     }
     ProgramLog.Exception(Message);
 }
示例#10
0
 public PortArgumentOutOfRangeException(string message, int id) : base(message)
 {
     Id      = id;
     Message = message;
     if (InnerException != null)
     {
         ProgramLog.Exception(InnerException.Message);
     }
     ProgramLog.Exception(message);
 }
示例#11
0
 public PortArgumentOutOfRangeException(int id)
 {
     Id      = id;
     Message = string.Join(string.Empty, "Incorrect value: '", Id, "'. The value is in the range of existing ports.");
     if (InnerException != null)
     {
         ProgramLog.Exception(InnerException.Message);
     }
     ProgramLog.Exception(Message);
 }
 public ContainArgumentException(string message, string value) : base(message)
 {
     Value   = value;
     Message = message;
     if (InnerException != null)
     {
         ProgramLog.Exception(InnerException.Message);
     }
     ProgramLog.Exception(Message);
 }
 public ContainArgumentException(string value)
 {
     Value   = value;
     Message = string.Join(string.Empty, "Item - ", Value, " not found in list");
     if (InnerException != null)
     {
         ProgramLog.Exception(InnerException.Message);
     }
     ProgramLog.Exception(Message);
 }