Show / Hide Table of Contents

Class ServerErrorException

Defines an abstract base class for the server error Web API exceptions.

Inheritance
System.Object
System.Exception
WebApiException
ServerErrorException
BadGatewayException
GatewayTimeoutException
HttpVersionNotSupportedException
InternalServerErrorException
NotImplementedException
ServiceUnavailableException
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
WebApiException.SetServiceName(String)
WebApiException.ToString()
WebApiException.ServiceStack
WebApiException.StatusCode
System.Exception.GetBaseException()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Juhta.Net.WebApi.Exceptions
Assembly: Juhta.Net.WebApi.Exceptions.dll
Syntax
public abstract class ServerErrorException : WebApiException, ISerializable

Constructors

| Improve this Doc View Source

ServerErrorException(ServerErrorResponse)

Initializes a new instance.

Declaration
protected ServerErrorException(ServerErrorResponse serverErrorResponse)
Parameters
Type Name Description
ServerErrorResponse serverErrorResponse

Specifies a server error.

| Improve this Doc View Source

ServerErrorException(HttpStatusCode)

Initializes a new instance.

Declaration
protected ServerErrorException(HttpStatusCode httpStatusCode)
Parameters
Type Name Description
System.Net.HttpStatusCode httpStatusCode

Specifies an HTTP status code.

| Improve this Doc View Source

ServerErrorException(HttpStatusCode, String)

Initializes a new instance.

Declaration
protected ServerErrorException(HttpStatusCode httpStatusCode, string message)
Parameters
Type Name Description
System.Net.HttpStatusCode httpStatusCode

Specifies an HTTP status code.

System.String message

Specifies an error message.

| Improve this Doc View Source

ServerErrorException(HttpStatusCode, String, Exception)

Initializes a new instance.

Declaration
protected ServerErrorException(HttpStatusCode httpStatusCode, string message, Exception innerException)
Parameters
Type Name Description
System.Net.HttpStatusCode httpStatusCode

Specifies an HTTP status code.

System.String message

Specifies an error message.

System.Exception innerException

Specifies an inner exception.

Properties

| Improve this Doc View Source

ErrorMessage

Gets the error message related to this ServerErrorException instance.

Declaration
public string ErrorMessage { get; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

ToServerErrorResponse()

Converts this ServerErrorException object to a ServerErrorResponse object.

Declaration
public ServerErrorResponse ToServerErrorResponse()
Returns
Type Description
ServerErrorResponse

Returns the resulting ServerErrorResponse object.

Implements

System.Runtime.Serialization.ISerializable
  • Improve this Doc
  • View Source
Back to top Copyright © 2017-2019 Juha Lähteenmäki
Generated by DocFX