Class HttpClientException
- Namespace
- Quartz
- Assembly
- Quartz.HttpClient.dll
A failure HttpScheduler could not attribute to a Quartz exception the server named.
public sealed class HttpClientException : SchedulerException, ISerializable
- Inheritance
-
HttpClientException
- Implements
- Inherited Members
Remarks
The API answers an error with problem details naming the exception type it came from, and the client
rebuilds that type where it recognises the name — a SchedulerException,
ObjectAlreadyExistsException or any of the other six reach the caller as themselves.
This is what everything else becomes: a request the endpoint rejected before it reached a scheduler,
a scheduler name the server does not hold, a response that carried no problem details, or a body that
could not be deserialized. It derives from SchedulerException so that one
catch covers both halves.
Constructors
HttpClientException(string)
Creates the exception with the message a caller sees, which carries the server's problem detail where there was one.
public HttpClientException(string message)
Parameters
messagestringWhat went wrong.
HttpClientException(string, Exception?)
Creates the exception over the one that caused it.
public HttpClientException(string message, Exception? innerException)