This reference describes unreleased code on main; no release documents it yet.

rlmesh::ModelException

classExperimental#include <rlmesh.hpp>[source]

ModelException: the model reported a failure. Throw ModelException(msg, true) from predict to fail one request as recoverable (code INTERNAL); its what() is [INTERNAL] msg.

class ModelException : public RLMeshException

ModelException

constructor[source]
explicit ModelException(
    std::string message,
    bool is_recoverable = false
)

ModelException: the model reported a failure. Throw ModelException(msg, true) from predict to fail one request as recoverable (code INTERNAL); its what() is [INTERNAL] msg.

ModelException

constructor[source]
ModelException(
    std::string message,
    ModelErrorCode code,
    bool is_recoverable,
    detail::FromLibrary
)

ModelException: the model reported a failure. Throw ModelException(msg, true) from predict to fail one request as recoverable (code INTERNAL); its what() is [INTERNAL] msg.

code

method[source]
ModelErrorCode code() const

is_recoverable

method[source]
bool is_recoverable() const