WebApiException Constructor (String, String, HttpStatusCode, DictionaryString, Object, String)
|
Namespace:
Aruba.Cloud.Common.Exceptions
Assembly:
Aruba.Cloud.Common (in Aruba.Cloud.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic WebApiException(
string message,
string detail = null,
HttpStatusCode errorStatusCode = HttpStatusCode.InternalServerError,
Dictionary<string, Object> extensions = null,
string type = null
)
Public Sub New (
message As String,
Optional detail As String = Nothing,
Optional errorStatusCode As HttpStatusCode = HttpStatusCode.InternalServerError,
Optional extensions As Dictionary(Of String, Object) = Nothing,
Optional type As String = Nothing
)
public:
WebApiException(
String^ message,
String^ detail = nullptr,
HttpStatusCode errorStatusCode = HttpStatusCode::InternalServerError,
Dictionary<String^, Object^>^ extensions = nullptr,
String^ type = nullptr
)
new :
message : string *
?detail : string *
?errorStatusCode : HttpStatusCode *
?extensions : Dictionary<string, Object> *
?type : string
(* Defaults:
let _detail = defaultArg detail null
let _errorStatusCode = defaultArg errorStatusCode HttpStatusCode.InternalServerError
let _extensions = defaultArg extensions null
let _type = defaultArg type null
*)
-> WebApiExceptionpublic function WebApiException(
message : String,
detail : String,
errorStatusCode : HttpStatusCode,
extensions : Dictionary<String, Object>,
type : String
)
Parameters
- message
- Type: SystemString
- detail (Optional)
- Type: SystemString
- errorStatusCode (Optional)
- Type: System.NetHttpStatusCode
- extensions (Optional)
- Type: System.Collections.GenericDictionaryString, Object
- type (Optional)
- Type: SystemString
See Also