using System;
namespace AsterNET.FastAGI
{
///
/// An InvalidCommandSyntaxException is thrown when the reader receives a reply with status code 520.
///
public class InvalidCommandSyntaxException : AGIException
{
///
/// Returns the synopsis of the command that was called with invalid syntax.
///
/// the synopsis of the command that was called with invalid syntax.
public string Synopsis
{
get { return synopsis; }
}
///
/// Returns a description of the command that was called with invalid syntax.
///
/// a description of the command that was called with invalid syntax.
public string Usage
{
get { return usage; }
}
private string synopsis;
private string usage;
///
/// Creates a new InvalidCommandSyntaxException with the given synopsis and usage.
///
/// the synopsis of the command.
/// the usage of the command.
public InvalidCommandSyntaxException(string synopsis, string usage)
: base("Invalid command syntax: " + synopsis)
{
this.synopsis = synopsis;
this.usage = usage;
}
}
}