public InvalidTokenException(string message, Token token, Exception innerException)
     : base(message, innerException)
 {
     this.Token = token;
 }
 public InvalidTokenException(Token token, string expectedValue)
     : this(string.Format("Invalid token encountered; found value '{0}', expected '{1}'",
         token.Value, expectedValue), token, null)
 {
 }
 public InvalidTokenException(Token token)
     : this("Invalid token encountered", token, null)
 {
 }
 public InvalidTokenException(string message, Token token)
     : this(message, token, null)
 {
 }