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); }
public CallLogArgumentException(string message) : base(message) { Message = message; if (InnerException != null) { ProgramLog.Exception(InnerException.Message); } ProgramLog.Exception(message); }
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); }
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); }
public DisconnectTerminalException() { Message = "The port is not used."; if (InnerException != null) { ProgramLog.Exception(InnerException.Message); } ProgramLog.Exception(Message); }
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); }
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); }
public PortArgumentOutOfRangeException(string message, int id) : base(message) { Id = id; Message = message; if (InnerException != null) { ProgramLog.Exception(InnerException.Message); } ProgramLog.Exception(message); }
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); }