Error Class

  • Error
  • class Esri::ArcGISRuntime::Error

    Error information about a runtime or server error. More...

    Header: #include <Error.h>
    Since: Esri::ArcGISRuntime 100.0

    This class was introduced in Esri::ArcGISRuntime 100.0.

    Public Functions

    Error(Esri::ArcGISRuntime::Error &&other)
    Error(const Esri::ArcGISRuntime::Error &other)
    Error(QString message, QString additionalMessage, Esri::ArcGISRuntime::ExtendedErrorType extendedErrorType = ExtendedErrorType::None)
    Error()
    Esri::ArcGISRuntime::Error &operator=(Esri::ArcGISRuntime::Error &&other)
    Esri::ArcGISRuntime::Error &operator=(const Esri::ArcGISRuntime::Error &other)
    ~Error()
    QString additionalMessage() const
    Esri::ArcGISRuntime::ErrorDomainType domain() const
    Esri::ArcGISRuntime::ErrorType errorType() const
    Esri::ArcGISRuntime::ExtendedErrorType extendedErrorType() const
    bool isEmpty() const
    QString message() const

    Detailed Description

    A user-defined error can also be created using custom message strings.

    Member Function Documentation

    Error::Error(Esri::ArcGISRuntime::Error &&other)

    Move constructor from other Error.

    Error::Error(const Esri::ArcGISRuntime::Error &other)

    Copy constructor from other Error.

    Error::Error(QString message, QString additionalMessage, Esri::ArcGISRuntime::ExtendedErrorType extendedErrorType = ExtendedErrorType::None)

    Constructor accepting user defined messages.

    • message. The error message.
    • additionalMessage. The additional, detailed error message.
    • extendedErrorType. The extended error type, if not set this is, ExtendedErrorType::None.

    This function was introduced in Esri::ArcGISRuntime 100.3.

    Error::Error()

    Constructor.

    Esri::ArcGISRuntime::Error &Error::operator=(Esri::ArcGISRuntime::Error &&other)

    Move operator from other Error.

    Esri::ArcGISRuntime::Error &Error::operator=(const Esri::ArcGISRuntime::Error &other)

    Assignment operator from other Error.

    Error::~Error()

    Destructor.

    QString Error::additionalMessage() const

    Gets the detailed error message.

    Esri::ArcGISRuntime::ErrorDomainType Error::domain() const

    Gets the error domain.

    Esri::ArcGISRuntime::ErrorType Error::errorType() const

    Gets the type of the error.

    If the domain of the error is not ArcGISRuntime, then this method may convert the code to an enum value that is not the actual error.

    This function was introduced in Esri::ArcGISRuntime 100.11.

    Esri::ArcGISRuntime::ExtendedErrorType Error::extendedErrorType() const

    Gets the extended error type.

    bool Error::isEmpty() const

    Gets whether the object is empty.

    Returns true if empty.

    QString Error::message() const

    Gets the error message.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.