SoError(3)
π SoError(3) π
okay bestie, welcome to the Coin manual page for SoError β she's a C++ class, she's the base class for all the error handling classes, and she is literally the mother of every error in the library. this is her whole page, no skips, no cap. π«Ά
β¨ NAME β¨
SoError β The SoError class is the base class for all the error handling classes. π
β¨ SYNOPSIS β¨
#include <Inventor/errors/SoError.h>
Inherited by SoDebugError, SoMemoryError, and SoReadError. (yes, she has three daughters and they are all iconic π
)
πΈ Public Member Functions πΈ
virtual ~SoError ()const SbString & getDebugString (void) constvirtual SoType getTypeId (void) constSbBool isOfType (const SoType type) const
πΈ Static Public Member Functions πΈ
static void setHandlerCallback (SoErrorCB *const func, void *const data)static SoErrorCB * getHandlerCallback (void)static void * getHandlerData (void)static SoType getClassTypeId (void)static void post (const char *const format,...)static SbString getString (const SoNode *const node)static SbString getString (const SoPath *const path)static SbString getString (const SoEngine *const engine)static void initClass (void)static void initClasses (void)
πΈ Protected Member Functions πΈ
virtual SoErrorCBPtr getHandler (void *&data) constvoid setDebugString (const char *const str)void appendToDebugString (const char *const str)void handleError (void)
πΈ Static Protected Member Functions πΈ
static void defaultHandlerCB (const SoError *error, void *userdata)
β¨ Detailed Description β¨
The SoError class is the base class for all the error handling classes. she's the blueprint, the moment, the blueprint-moment. π
The default error handler just prints messages on the standard error output channel, but this can be overridden by client applications.
Being able to override the default handler is useful when you want to collect error messages upon e.g. model import for later presentation of the messages to the user in any custom manner (like for instance in a GUI message box). so cute, so practical, we love a customizable girlie. π
ngl, the SoError class is not designed to be particularly useful for "direct use". Within the Coin library it is only used through its subclasses. so likeβ¦ don't come for her directly, she's a backstage queen π
π Constructor & Destructor Documentation π
virtual SoError::~SoError () [inline], [virtual]
The default destructor does nothing. she leaves quietly, no drama, no cleanup, just vibes. πβ¨
π Member Function Documentation π
void SoError::setHandlerCallback (SoErrorCB *const function, void *const data) [static]
This method sets the error handler callback for messages posted via this class.
β οΈ Note that this will not override the error/debug message handler for subclasses β these will have to be overridden by calling the subclass' setHandlerCallback() method. so don't think you can set it once and ghost the subclasses, bestie, they need their own. π
See also: defaultHandlerCB()
SoErrorCB * SoError::getHandlerCallback (void ) [static]
Returns the error handler callback for messages posted via this class. the one you set? yeah, she remembers. π
void * SoError::getHandlerData (void ) [static]
This method returns the pointer used for passing data back to the callback handler method. it's giving "here's your stuff back". π
const SbString & SoError::getDebugString (void ) const
This method returns an SbString containing error info from the given error instance.
SoType SoError::getClassTypeId (void ) [static]
This static method returns the SoType for this class.
See also: getTypeId()
SoType SoError::getTypeId (void ) const [virtual]
This method returns the SoType of a particular object instance.
See also: getClassTypeId()
Reimplemented in SoDebugError, SoMemoryError, and SoReadError. (all three of them said "not me copying mom's homework" π
)
SbBool SoError::isOfType (const SoType type) const
This method returns TRUE if the error instance is of β or derived from β type, and FALSE otherwise. vibe check: are you her, or descended from her? π¦
void SoError::post (const char *const format, ...) [static]
This method posts an error message. The format string and the trailing arguments should follow the printf() standard. periodt. π
SbString SoError::getString (const SoNode *const node) [static]
Constructs a string identifying the node with name (if available) and memory pointer. π§
SbString SoError::getString (const SoPath *const path) [static]
Constructs a string identifying the path with name (if available) and memory pointer. π
SbString SoError::getString (const SoEngine *const engine) [static]
Constructs a string identifying the engine with name (if available) and memory pointer. π₯
void SoError::initClass (void ) [static]
This method takes care of initializing all static data for the class. getting her ready for the group chat β¨
void SoError::initClasses (void ) [static]
This static method initializes all the SoError classes. the whole squad, all at once. π
void SoError::defaultHandlerCB (const SoError * error, void * data) [static], [protected]
Contains the default code for handling error strings.
Default treatment of an error message is to print it out on the standard error file handle. simple, iconic, never misses. π
SoErrorCB * SoError::getHandler (void *& data) const [protected], [virtual]
This is just a convenience wrapper around the getHandlerCallback() and getHandlerData() methods. she's not doing extra work, she's just connecting you to the right people. π«Ά
Reimplemented in SoDebugError, SoMemoryError, and SoReadError.
void SoError::setDebugString (const char *const str) [protected]
Replace the latest stored debug string with str. out with the old, in with the new. π
void SoError::appendToDebugString (const char *const str) [protected]
Add str at the end of the currently stored debug string. not replacing, just adding on β she's a maximalist. πΈ
void SoError::handleError (void ) [protected]
This method calls the appropriate handler for an error instance. All error handling goes through this method, and is therefore a good candidate for a debugger breakpoint. π― if you're hunting bugs, this is the spot to set your little trap. π
π Author π
Generated automatically by Doxygen for Coin from the source code. (no human wrote this, the robot did, and honestly? she ate. π€β¨)
and that's the whole page, bestie β this was Version 4.0.10, dated Thu Jun 25 2026 00:00:00, filed under SoError(3) in section 3 of the Coin manual. go forth and handle your errors with main character energy. πππ¦πΈπ
π«Άπ
π¦ where this page comes from
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms