#include <nodeerrors.h>
Return this error during node instantiation if a required asset is missing. Ideally, the error should be given informations on the missing asset for debugging.
Public Member Functions | |
MAXON_METHOD const AssetLink & | GetAssetLink () const |
MAXON_METHOD void | SetAssetLink (const AssetLink &missingAsset) |
MAXON_ADD_TO_COPY_ON_WRITE_REFERENCE_CLASS (protected:void Create(MAXON_SOURCE_LOCATION_DECLARATION, const AssetLink &missingAsset, const String &msg=String{}) { *static_cast< typename S::DirectlyReferencedType::Hxx1::ReferenceClass * >(this)=S::DirectlyReferencedType::Hxx1::ErrObj::GetInstance()();typename S::DirectlyReferencedType::Ptr e=this->MakeWritable(false).GetPointer();e.SetLocation(MAXON_SOURCE_LOCATION_FORWARD);e.SetAssetLink(missingAsset);e.SetMessage(msg);}) | |
Private Member Functions | |
MAXON_INTERFACE (MissingNodeAssetErrorInterface, MAXON_REFERENCE_COPY_ON_WRITE, "net.maxon.interface.node.missingasseterror", MAXON_IMPLEMENTATION_MODULE("net.maxon.nodes")) | |
|
private |
MAXON_METHOD const AssetLink& GetAssetLink | ( | ) | const |
Returns the missing asset informations.
MAXON_METHOD void SetAssetLink | ( | const AssetLink & | missingAsset | ) |
Sets the missing asset informations.
MAXON_ADD_TO_COPY_ON_WRITE_REFERENCE_CLASS | ( | protected:void Create(MAXON_SOURCE_LOCATION_DECLARATION, const AssetLink &missingAsset, const String &msg=String{}) { *static_cast< typename S::DirectlyReferencedType::Hxx1::ReferenceClass * >(this)=S::DirectlyReferencedType::Hxx1::ErrObj::GetInstance()();typename S::DirectlyReferencedType::Ptr e=this->MakeWritable(false).GetPointer();e.SetLocation(MAXON_SOURCE_LOCATION_FORWARD);e.SetAssetLink(missingAsset);e.SetMessage(msg);} | ) |