c2pa-c
C++ API for c2pa-c library
Loading...
Searching...
No Matches
c2pa::C2paException Class Reference

Exception class for C2pa errors. This class is used to throw exceptions for errors encountered by the C2pa library via c2pa_error(). More...

#include <c2pa.hpp>

Inheritance diagram for c2pa::C2paException:
Collaboration diagram for c2pa::C2paException:

Public Member Functions

 C2paException ()
 Default constructor.
 
 C2paException (std::string message)
 Construct an exception with a custom error message.
 
 ~C2paException () override=default
 
 C2paException (const C2paException &)=default
 
C2paExceptionoperator= (const C2paException &)=default
 
 C2paException (C2paException &&)=default
 
C2paExceptionoperator= (C2paException &&)=default
 
const char * what () const noexcept override
 Get the exception message.
 

Detailed Description

Exception class for C2pa errors. This class is used to throw exceptions for errors encountered by the C2pa library via c2pa_error().

Constructor & Destructor Documentation

◆ C2paException() [1/4]

c2pa::C2paException::C2paException ( )

Default constructor.

Creates an exception and retrieves the error message from the C2PA library.

◆ C2paException() [2/4]

c2pa::C2paException::C2paException ( std::string  message)
explicit

Construct an exception with a custom error message.

Parameters
messageThe error message.

◆ ~C2paException()

c2pa::C2paException::~C2paException ( )
overridedefault

◆ C2paException() [3/4]

c2pa::C2paException::C2paException ( const C2paException )
default

◆ C2paException() [4/4]

c2pa::C2paException::C2paException ( C2paException &&  )
default

Member Function Documentation

◆ operator=() [1/2]

C2paException & c2pa::C2paException::operator= ( C2paException &&  )
default

◆ operator=() [2/2]

C2paException & c2pa::C2paException::operator= ( const C2paException )
default

◆ what()

const char * c2pa::C2paException::what ( ) const
overridenoexcept

Get the exception message.

Returns
Null-terminated error message string.

The documentation for this class was generated from the following file: