WebDavSharp/WebDavSharp_MVC/WebDAVSharp.Server/Exceptions/WebDavInternalServerException.cs
Charly 895efb2682 -initial commit
-fixed: made original version work in console
-added: MVC WebApi Controller based server
-changed: modification needeed to make it work with Train2B
2016-10-03 09:55:15 +02:00

26 lines
1011 B
C#

using System;
using System.Net;
namespace WebDAVSharp.Server.Exceptions {
/// <summary>
/// This exception is thrown when the server throws a different exception than the standard
/// ones that
/// <see cref="WebDavServer" /> knows how to respond to.
/// Statuscode: 500 Internal Server Error.
/// </summary>
[Serializable]
public class WebDavInternalServerException : WebDavException {
/// <summary>
/// Initializes a new instance of the <see cref="WebDavInternalServerException" /> class.
/// </summary>
/// <param name="message">The exception message stating the reason for the exception being thrown.</param>
/// <param name="innerException">The
/// <see cref="Exception" /> that is the cause for this exception;
/// or
/// <c>null</c> if no inner exception is specified.</param>
public WebDavInternalServerException(string message = null, Exception innerException = null)
: base(HttpStatusCode.InternalServerError, message, innerException) {
// Do nothing here
}
}
}