/// <summary>
 /// Constructor function for an <see cref="AseException" /> instance.
 /// </summary>
 /// <param name="message">A message describing the error.</param>
 /// <param name="inner">A deeper error that happened in the context of this error.</param>
 public AseException(string message, Exception inner) : base(message, inner)
 {
     Errors = new AseErrorCollection(new AseError
     {
         Message = message
     });
 }
 private AseException(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     Errors = new AseErrorCollection(new AseError
     {
         Message = ""
     });
 }
 /// <summary>
 /// Constructor function for an <see cref="AseException" /> instance.
 /// </summary>
 /// <param name="message">A message describing the error.</param>
 /// <param name="errorCode">The error code identifying the error.</param>
 public AseException(string message, int errorCode) : base(message)
 {
     Errors = new AseErrorCollection(new AseError
     {
         Message       = message,
         MessageNumber = errorCode
     });
 }
 /// <summary>
 /// Constructor function for an <see cref="AseException" /> instance.
 /// </summary>
 /// <param name="errors">Error details</param>
 public AseException(params AseError[] errors)
 {
     Errors = new AseErrorCollection(errors);
 }
 /// <summary>
 /// Constructor function for an <see cref="AseException" /> instance.
 /// </summary>
 /// <param name="inner">A deeper error that happened in the context of this error.</param>
 /// <param name="errors">Error details</param>
 public AseException(Exception inner, params AseError[] errors) : base("", inner)
 {
     Errors = new AseErrorCollection(errors);
 }
 public AseInfoMessageEventArgs(AseErrorCollection errors, string message)
 {
     Message = message;
     Errors  = errors;
 }