mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
replace external httpserver by embedded one (based on same code) - This may still be very bad; clean solution and runprebuild, or clone to clan folder
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Net;
|
||||
|
||||
namespace OSHttpServer.Exceptions
|
||||
{
|
||||
/// <summary>
|
||||
/// The server encountered an unexpected condition which prevented it from fulfilling the request.
|
||||
/// </summary>
|
||||
public class InternalServerException : HttpException
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="InternalServerException"/> class.
|
||||
/// </summary>
|
||||
public InternalServerException()
|
||||
: base(HttpStatusCode.InternalServerError, "The server encountered an unexpected condition which prevented it from fulfilling the request.")
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="InternalServerException"/> class.
|
||||
/// </summary>
|
||||
/// <param name="message">error message.</param>
|
||||
public InternalServerException(string message)
|
||||
: base(HttpStatusCode.InternalServerError, message)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="InternalServerException"/> class.
|
||||
/// </summary>
|
||||
/// <param name="message">error message.</param>
|
||||
/// <param name="inner">inner exception.</param>
|
||||
public InternalServerException(string message, Exception inner)
|
||||
: base(HttpStatusCode.InternalServerError, message, inner)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user