/// <summary>
 /// Initializes a new instance with a specified error message and a reference to the inner exception 
 /// that is the cause of this exception.
 /// </summary>
 /// <param name="code">Error code.</param>
 /// <param name="message">A message that describes the error</param>
 /// <param name="inner">The exception that is the cause of the current exception</param>
 public SchemaInfoException(SchemaInfoErrorCode code, string message, Exception inner)
     : base(message, inner)
 {
     this.ErrorCode = code;
 }
 /// <summary>
 /// Initializes a new instance with a specified error message and a reference to the inner exception
 /// that is the cause of this exception.
 /// </summary>
 /// <param name="code">Error code.</param>
 /// <param name="message">A message that describes the error</param>
 /// <param name="inner">The exception that is the cause of the current exception</param>
 public SchemaInfoException(SchemaInfoErrorCode code, string message, Exception inner)
     : base(message, inner)
 {
     this.ErrorCode = code;
 }
 /// <summary>
 /// Initializes a new instance with a specified formatted error message. 
 /// </summary>
 /// <param name="code">Error code.</param>
 /// <param name="format">The format message that describes the error</param>
 /// <param name="args">The arguments to the format string</param>
 public SchemaInfoException(SchemaInfoErrorCode code, string format, params object[] args)
     : base(string.Format(CultureInfo.InvariantCulture, format, args))
 {
     this.ErrorCode = code;
 }
 /// <summary>
 /// Initializes a new instance with a specified formatted error message.
 /// </summary>
 /// <param name="code">Error code.</param>
 /// <param name="format">The format message that describes the error</param>
 /// <param name="args">The arguments to the format string</param>
 public SchemaInfoException(SchemaInfoErrorCode code, string format, params object[] args)
     : base(string.Format(CultureInfo.InvariantCulture, format, args))
 {
     this.ErrorCode = code;
 }