CAD Exchanger SDK
cadex::BaseError_UnexpectedFormat Class Reference

Indicates that a file's format doesn't match the reader. More...

Inheritance diagram for cadex::BaseError_UnexpectedFormat:
cadex::Base_Exception

Public Member Functions

 BaseError_UnexpectedFormat (const Base_UTF16String &theFormatName)
 Constructor.
 
const Base_UTF16StringFormatName () const
 Returns the name of the format that was expected.
 
- Public Member Functions inherited from cadex::Base_Exception
 Base_Exception (const Base_UTF16String &theWhat)
 Constructs an exception object from the error message.
 
 ~Base_Exception ()
 Destructor.
 
const Base_UTF16StringWhat () const
 Returns a message associated to the exception.
 

Additional Inherited Members

- Protected Member Functions inherited from cadex::Base_Exception
 Base_Exception (std::shared_ptr< internal::Base_ExceptionImpl > theImpl)
 Reserved for internal use.
 
template<typename T >
T * Impl () const
 Reserved for internal use.
 
- Protected Attributes inherited from cadex::Base_Exception
std::shared_ptr< internal::Base_ExceptionImpl > myImpl
 

Detailed Description

Indicates that a file's format doesn't match the reader.

An exception class whose instances are thrown when a reader is used to import a model of the format different from the format of the reader.

A common use case is when models of different formats have the same extension. When a non-matching reader is used, this exception can be thrown.

Note
This exception is only thrown if a feature-flag Base_Settings::UseExceptions is enabled. For more information refer to Error handling.