Exceptions¶
h2o.exceptions – all exceptions classes in h2o module.
All H2O exceptions derive from H2OError.
-
exception
h2o.exceptions.H2OStartupError[source]¶ Bases:
h2o.exceptions.H2OSoftErrorRaised by H2OLocalServer when the class fails to launch a server.
-
exception
h2o.exceptions.H2OConnectionError[source]¶ Bases:
h2o.exceptions.H2OSoftErrorRaised when connection to an H2O server cannot be established.
This can be raised if the connection was not initialized; or the server cannot be reached at the specified address; or there is an authentication error; or the request times out; etc.
-
exception
h2o.exceptions.H2OServerError(message, stacktrace=None)[source]¶ Bases:
h2o.exceptions.H2OErrorRaised when any kind of server error is encountered.
This includes: server returning HTTP status 500; or server sending malformed JSON; or server returning an unexpected response (e.g. lacking a “__schema” field); or server indicating that it is in an unhealthy state; etc.
-
exception
h2o.exceptions.H2OResponseError[source]¶ Bases:
h2o.exceptions.H2OError,exceptions.EnvironmentErrorRaised when the server encounters a user error and sends back an H2OErrorV3 response.
-
exception
h2o.exceptions.H2OValueError(message, var_name=None, skip_frames=0)[source]¶ Bases:
h2o.exceptions.H2OSoftError,exceptions.ValueErrorError indicating that wrong parameter value was passed to a function.
-
exception
h2o.exceptions.H2OTypeError(var_name=None, var_value=None, var_type_name=None, exp_type_name=None, message=None, skip_frames=0)[source]¶ Bases:
h2o.exceptions.H2OSoftError,exceptions.TypeErrorError indicating that the user passed a parameter of wrong type.
This error will trigger “soft” exception handling, in the sense that the stack trace will be much more compact than usual.
-
skip_frames¶ Number of local frames to skip when printing our the stacktrace.
-
var_name¶ Variable name.
-