POST api/HeatUnitPlantImages/ThrowException?message={message}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
message

string

Required

Body Parameters

None.

Response Information

Resource Description

Exception
NameDescriptionTypeAdditional information
Message

string

None.

Data

Dictionary of Object [key] and Object [value]

None.

InnerException

Exception

None.

TargetSite

MethodBase

None.

StackTrace

string

None.

HelpLink

string

None.

Source

string

None.

HResult

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "ClassName": "System.Exception",
  "Message": null,
  "Data": null,
  "InnerException": null,
  "HelpURL": "sample string 1",
  "StackTraceString": null,
  "RemoteStackTraceString": null,
  "RemoteStackIndex": 0,
  "ExceptionMethod": null,
  "HResult": 3,
  "Source": "sample string 2",
  "WatsonBuckets": null
}

application/xml, text/xml

Sample:
<Exception xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.datacontract.org/2004/07/System">
  <ClassName i:type="x:string" xmlns="">System.Exception</ClassName>
  <Message i:nil="true" xmlns="" />
  <Data i:nil="true" xmlns="" />
  <InnerException i:nil="true" xmlns="" />
  <HelpURL i:type="x:string" xmlns="">sample string 1</HelpURL>
  <StackTraceString i:nil="true" xmlns="" />
  <RemoteStackTraceString i:nil="true" xmlns="" />
  <RemoteStackIndex i:type="x:int" xmlns="">0</RemoteStackIndex>
  <ExceptionMethod i:nil="true" xmlns="" />
  <HResult i:type="x:int" xmlns="">3</HResult>
  <Source i:type="x:string" xmlns="">sample string 2</Source>
  <WatsonBuckets i:nil="true" xmlns="" />
</Exception>