using System; using System.Net; namespace OSHttpServer.Exceptions { /// /// The server encountered an unexpected condition which prevented it from fulfilling the request. /// public class InternalServerException : HttpException { /// /// Initializes a new instance of the class. /// public InternalServerException() : base(HttpStatusCode.InternalServerError, "The server encountered an unexpected condition which prevented it from fulfilling the request.") { } /// /// Initializes a new instance of the class. /// /// error message. public InternalServerException(string message) : base(HttpStatusCode.InternalServerError, message) { } /// /// Initializes a new instance of the class. /// /// error message. /// inner exception. public InternalServerException(string message, Exception inner) : base(HttpStatusCode.InternalServerError, message, inner) { } } }