コード例 #1
0
 /// <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
     });
 }
コード例 #2
0
 private AseException(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     Errors = new AseErrorCollection(new AseError
     {
         Message = ""
     });
 }
コード例 #3
0
 /// <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
     });
 }
コード例 #4
0
 /// <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);
 }
コード例 #5
0
 /// <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;
 }