Exceptions for the dxpy package.
Bases: dxpy.exceptions.ProgramError
Base class for fatal exceptions to be raised while using dxpy inside DNAnexus execution containers.
This exception is thrown for user errors, and the error message is presented to the user. Throwing this exception will cause the Python execution template to write exception information into the file job_error.json in the current working directory, allowing reporting of the error state through the DNAnexus API.
Bases: dxpy.exceptions.DXError
Base class for fatal exceptions to be raised while using dxpy inside DNAnexus execution containers.
This exception is intended for internal App errors, whose message goes to the App developer. Throwing this exception will cause the Python execution template to write exception information into the file job_error.json in the current working directory, allowing reporting of the error state through the DNAnexus API.
Bases: exceptions.ValueError
Raised when the server returned invalid JSON in the response body. Possible reasons for this are the network connection breaking, or overload on the server.
Bases: requests.exceptions.HTTPError
Raised when actual content length received from the server does not match the “Content-Length” header
Initialize RequestException with request and response objects.
Bases: dxpy.exceptions.DXError
Exception for when the API server responds with a code that is not 200 (OK). See https://documentation.dnanexus.com/developer/api/protocols#errors for complete documentation of API errors, including those reflected by subclasses of this class.
Bases: dxpy.exceptions.DXError
Exception for dxpy.bindings.dxapplet.DXApplet.
Bases: dxpy.exceptions.DXError
Exception class for generic errors in the command-line client
Bases: dxpy.exceptions.DXFileError
Exception raised by dxpy.bindings.dxfile.DXFile on checksum mismatch.
Bases: exceptions.Exception
Base class for exceptions in this package.
Bases: dxpy.exceptions.DXError
Exception for dxpy.bindings.dxfile.DXFile.
Bases: dxpy.exceptions.DXError
Exception for dxpy.bindings.dxfile.DXFile when returned read data is shorter than requested
Bases: dxpy.exceptions.DXError
Exception produced by dxpy.bindings.dxjob.DXJob when a job fails.
Bases: dxpy.exceptions.DXFileError
Exception raised by dxpy.bindings.dxfile.DXFile on part length mismatch.
Bases: dxpy.exceptions.DXError
Exception for dxpy.bindings.search methods.
Bases: requests.exceptions.HTTPError
Specific variant of HTTPError with response content.
This class was created to avoid appending content directly to error message which makes difficult to format log strings.
Bases: dxpy.exceptions.DXAPIError
Raised when the server encountered an internal error.
Bases: dxpy.exceptions.DXAPIError
Raised when the provided OAuth2 token is invalid.
Bases: dxpy.exceptions.DXAPIError
Raised when the input is syntactically correct (JSON), but semantically incorrect (for example, a JSON array is provided where a hash was required; or a required parameter was missing, etc.).
Bases: dxpy.exceptions.DXAPIError
Raised when the operation is not allowed at this object state.
Bases: dxpy.exceptions.DXAPIError
Raised when the connection to the server was reset due to an ssl protocol not supported. Only connections with TLS v1.2 will be accepted.
Bases: dxpy.exceptions.DXAPIError
Raised when an object specified in the request is of invalid type.
Bases: dxpy.exceptions.DXAPIError
Raised when the input could not be parsed as JSON.
Bases: dxpy.exceptions.DXAPIError
Raised when the supplied credentials have insufficient permissions to perform this action.
Bases: dxpy.exceptions.DXError
Deprecated. Use AppError instead.
Bases: dxpy.exceptions.DXAPIError
Raised when the rate of invalid requests is too high.
Bases: dxpy.exceptions.DXAPIError
Raised when a specified entity or resource could not be found.
Bases: dxpy.exceptions.DXAPIError
Raised when an API service was temporarily unavailable.
Bases: dxpy.exceptions.DXAPIError
Raised when the spending limit has been reached for the account that would be billed for this action.
Bases: exceptions.AttributeError
Exception class for AttributeError from urllib3
Exits the program, printing information about the last exception (if any) and an optional error message. Uses exception instead if provided.
Uses expected_exceptions to set the error code decide whether to suppress the error traceback.
Parameters: |
|
---|
Exits the program, printing information about the last exception (if any) and an optional error message. Uses exception instead if provided.
Parameters: |
|
---|