Class ServerErrorException
Defines an abstract base class for the server error Web API exceptions.
Inheritance
System.Object
    System.Exception
    
    ServerErrorException
      
      
      
      
      
      
  Implements
System.Runtime.Serialization.ISerializable
  Inherited Members
      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, ISerializableConstructors
| Improve this Doc View SourceServerErrorException(ServerErrorResponse)
Initializes a new instance.
Declaration
protected ServerErrorException(ServerErrorResponse serverErrorResponse)Parameters
| Type | Name | Description | 
|---|---|---|
| ServerErrorResponse | serverErrorResponse | Specifies a server error. | 
ServerErrorException(HttpStatusCode)
Initializes a new instance.
Declaration
protected ServerErrorException(HttpStatusCode httpStatusCode)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Net.HttpStatusCode | httpStatusCode | Specifies an HTTP status code. | 
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. | 
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 SourceErrorMessage
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 SourceToServerErrorResponse()
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