Questions?


Get in touch with us today and our team of imaging professionals will be pleased to assist you.

Contact Us

eSDK Pro Error Handling

This topic describes the ErrorCode enum and the ESdkProException class used to report errors in eSDK Pro.


ErrorCode Enum

Namespace: eSdkPro  Header: eSdkPro/errors.h

Represents the result of an SDK operation.

  • Success — The operation completed successfully.
  • General — A non-specific error occurred.
  • NotFound — A required resource was not found.
  • Invalid — The operation failed due to invalid input or state.


ESdkProException Class

Namespace: eSdkPro  Header: eSdkPro/errors.h

Exception thrown from eSDK Pro.

ESdkProException()

eSdkPro::ESdkProException::ESdkProException(ErrorCode code, const std::string& msg)


Parameters:

  • code — An error code representing the exception.
  • msg — A concise, readable string for debugging and logging.

what()

const char* eSdkPro::ESdkProException::what() const noexcept override


Retrieves a concise, readable string for debugging and logging.

Returns: Pointer to a null-terminated string with explanatory information about the exception.

GetErrorCode()

ErrorCode eSdkPro::ESdkProException::GetErrorCode() const


Returns:
The error code related to the exception.


See Also

Updated on
November 7, 2025
Questions?


Get in touch with us today and our team of imaging professionals will be pleased to assist you.

Contact Us