Пример #1
0
        internal protected override void HandleCommandException(Connection connection, Exception exception)
        {
            if (this.Detailed500Errors)
            {
                connection.WriteLine(String.Format("500 Internal Error: ({0}) {1}", exception.GetType().FullName, CleanStringForCommandResponse(exception.Message)));
            }
            else
            {
                connection.WriteLine("500 Internal Error");
            }

            // Don't call base, as we wanna keep the connection open.
        }
Пример #2
0
		public void WriteHeader(Connection connection)
		{
			connection.WriteLine(FirstHeader);

			foreach (HttpHeader header in this)
			{
				connection.WriteLine(header.ToString());
			}
			connection.WriteLine("");
		}