Skip To Content ArcGIS for Developers Sign In Dashboard

Error Class

(Esri::ArcGISRuntime::Error)

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

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

Public Functions

Error()
Error(QString message, QString additionalMessage, ExtendedErrorType extendedErrorType = ExtendedErrorType::None)
Error(const Error &other)
Error(Error &&other)
~Error()
QString additionalMessage() const
int code() const
ErrorDomainType domain() const
ExtendedErrorType extendedErrorType() const
bool isEmpty() const
QString message() const
Error &operator=(const Error &other)
Error &operator=(Error &&other)

Detailed Description

Error information about a runtime or server error.

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

Member Function Documentation

Error::Error()

Constructor.

Error::Error(QString message, QString additionalMessage, 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(const Error &other)

Copy constructor from other Error.

Error::Error(Error &&other)

Move constructor from other Error.

Error::~Error()

Destructor.

QString Error::additionalMessage() const

Gets the detailed error message.

int Error::code() const

Gets the error code.

If the code is 25 the Error::extendedErrorType should be checked for possible network or file I/O errors.

ErrorDomainType Error::domain() const

Gets the error domain.

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.

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

Assignment operator from other Error.

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

Move operator from other Error.


Feedback on this topic?