C# Class NJsonApi.Common.Infrastructure.NJsonApiBaseException

Inheritance: System.Exception
ファイルを表示 Open project: jacek-gorgon/NJsonApi

Public Methods

Method Description
GetHttpStatusCode ( ) : HttpStatusCode

Return the default mapping of exception to standard HTTP error code. Default implementation returns 500. Sub-classes should override this when needed

NJsonApiBaseException ( ) : System
NJsonApiBaseException ( string message ) : System
NJsonApiBaseException ( string message, Exception innerException ) : System

Protected Methods

Method Description
NJsonApiBaseException ( SerializationInfo info, StreamingContext context ) : System

Private Methods

Method Description
AssignId ( ) : void

Method Details

GetHttpStatusCode() public method

Return the default mapping of exception to standard HTTP error code. Default implementation returns 500. Sub-classes should override this when needed
public GetHttpStatusCode ( ) : HttpStatusCode
return HttpStatusCode

NJsonApiBaseException() public method

public NJsonApiBaseException ( ) : System
return System

NJsonApiBaseException() protected method

protected NJsonApiBaseException ( SerializationInfo info, StreamingContext context ) : System
info System.Runtime.Serialization.SerializationInfo
context System.Runtime.Serialization.StreamingContext
return System

NJsonApiBaseException() public method

public NJsonApiBaseException ( string message ) : System
message string
return System

NJsonApiBaseException() public method

public NJsonApiBaseException ( string message, Exception innerException ) : System
message string
innerException System.Exception
return System