Class
IppException
OfficeIMO.Workflows
An IPP printer could not be reached, returned a malformed or oversized response, or rejected the request.
Inheritance
- IOException
- IppException
Remarks
When IppException.StatusCode is set, the printer answered with that IPP status and did not accept the request. A failure after a Print-Job document started streaming is reported as PdfPrintDeliveryException instead.
Constructors
public IppException(string message, int? statusCode = null, Exception? innerException = null) #Creates an IPP failure.
Parameters
- message string
- statusCode int? = null
- innerException System.Exception? = null
Inherited Methods
public virtual void GetObjectData(SerializationInfo info, StreamingContext context) #Inherited from Exception
Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}") EditorBrowsable(1)Parameters
- info SerializationInfo
- context StreamingContext
Properties
public int? StatusCode { get; } #IPP status code returned by the printer (for example 0x040A, client-error-document-format-not-supported), or null when no valid response was received.
Inherited Properties
public MethodBase? TargetSite { get; } #Inherited from Exception
public virtual string Message { get; } #Inherited from Exception
public virtual IDictionary Data { get; } #Inherited from Exception
public Exception? InnerException { get; } #Inherited from Exception
public virtual string? HelpLink { get; set; } #Inherited from Exception
public virtual string? Source { get; set; } #Inherited from Exception
public int HResult { get; set; } #Inherited from Exception
public virtual string? StackTrace { get; } #Inherited from Exception