::: header
:::
Overview Directory File Source
{align=“top”} Etc Categories Search Index Help User documentation
single page{target=“_top”} | use frames{target=“_top”} summary class fields routine details file attributes
::: content
\
::: {#file_comments}
::: small
This class represents an object that is used to report HTTP errors.
Notes:
Author
: B. Harris
Copyright
: Copyright (c) 2010-2021 United States Government as represented by the National Aeronautics and Space Administration. No copyright is claimed in the United States under Title 17, U.S.Code. All Other Rights Reserved.
::: class-description
:::
[result]{.var} = SpdfHttpErrorReporter::init()
: Creates an SpdfHttpErrorReporter object.
SpdfHttpErrorReporter::cleanup
: Performs cleanup operations when this object is destroyed.
: This procedure is called when an HTTP error occurs.
SpdfHttpErrorReporter::printResponse[, responseFilename]{.argument}
: This procedure prints some diagnostic information from the given HTTP error response file.
SpdfHttpErrorReporter::waitUntilRetryAfterTime
: Suspends execution until after any retryAfterTime.
[result]{.var} = SpdfHttpErrorReporter::getRetryAfterTime()
: Gets the retryAfterTime value.
: Defines the SpdfHttpErrorReporter class.
::: {#routine-details}
::: {#SpdfHttpErrorReporter::init .routine-details .details}
[result]{.var} = SpdfHttpErrorReporter::init()
Creates an SpdfHttpErrorReporter object.
::: small reference to an SpdfHttpErrorReporter object. ::: :::
::: {#SpdfHttpErrorReporter::cleanup .routine-details .details}
SpdfHttpErrorReporter::cleanup
Performs cleanup operations when this object is destroyed.
::: {#SpdfHttpErrorReporter::reportError .routine-details .details}
SpdfHttpErrorReporter::reportError[, responseCode]{.argument}[, responseHeader]{.argument}[, responseFilename]{.argument}
This procedure is called when an HTTP error occurs. This default implementation merely prints some diagnostic information.
responseCode [in type=int ]{.smaller}
: the HTTP response code of the request causing the error.
responseHeader [in type=string ]{.smaller}
: the HTTP response header of the request causing the error.
responseFilename [in type=string ]{.smaller}
: the name of an error response file sent when the error occurred. :::
::: {#SpdfHttpErrorReporter::printResponse .routine-details .details}
SpdfHttpErrorReporter::printResponse[, responseFilename]{.argument}
This procedure prints some diagnostic information from the given HTTP error response file. It only recognizes the “typical” error response from the web services.
responseFilename [in type=string ]{.smaller}
: the name of an error response file sent when the error occurred. :::
::: {#SpdfHttpErrorReporter::waitUntilRetryAfterTime .routine-details .details}
SpdfHttpErrorReporter::waitUntilRetryAfterTime
Suspends execution until after any retryAfterTime. If there has been no HTTP 429/503/RetryAfter condition or the current time is after the retryAfterTime, then no suspension occurs.
::: {#SpdfHttpErrorReporter::getRetryAfterTime .routine-details .details}
[result]{.var} = SpdfHttpErrorReporter::getRetryAfterTime()
Gets the retryAfterTime value.
::: small the number of seconds elapsed since 1970-01-01 when we can retry a request following an HTTP response with status 429/503 and an HTTP Retry-After header value. ::: :::
::: {#SpdfHttpErrorReporter__define .routine-details .details}
SpdfHttpErrorReporter__define
Defines the SpdfHttpErrorReporter class.
::: {#attributes}
Modification date: Fri May 13 08:54:13 2022 Lines: 72
:::
SSC
Feedback.
:::
::: footer
Produced by IDLdoc 3.6.4 on Mon Apr 8 09:50:59 2024 IDLdoc project information{target=“_top”}
:::