3ds Max C++ API Reference
Loading...
Searching...
No Matches
MAXScriptException Class Reference

#include <exceptions.h>

+ Inheritance diagram for MAXScriptException:

Classes

class  ScopedCplusplusCallstackCaptureDisable
 helper class for disabling c++ callstack capture if a system exception is thrown. More...
 
class  ScopedMXSCallstackCaptureDisable
 helper class for disabling mxs callstack capture if an exception is thrown. More...
 

Public Member Functions

 MAXScriptException ()
 
virtual ~MAXScriptException ()
 
virtual void sprin1 (CharStream *s) const
 
void CaptureMXSCallstack (bool forceCapture=false, bool captureLocals=true)
 
void CaptureCplusplusCallstack (int skipFirstNStackLevels=4, bool forceCapture=false)
 
const MSTRMXSCallstack () const
 
const MSTRCplusplusCallstack () const
 

Static Public Member Functions

static void MXSCallstackCaptureEnabled (bool enabled)
 
static bool isMXSCallstackCaptureEnabled ()
 
static void CplusplusCallstackCaptureEnabled (bool enabled)
 
static bool isCplusplusCallstackCaptureEnabled ()
 
- Static Public Member Functions inherited from MaxHeapOperators
static UtilExport voidoperator new (size_t size)
 Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e)
 Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new (size_t size, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new (size_t size, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new[] (size_t size)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new[] (size_t size, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects.
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new[] (size_t size, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned.
 
static UtilExport void operator delete (void *ptr)
 Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete (void *ptr, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete[] (void *ptr)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete[] (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete[] (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete[] (void *ptr, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator.
 
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator.
 
static UtilExport voidaligned_malloc (size_t size, size_t alignment)
 Allocates memory on a specified alignment boundary.
 
static UtilExport voidaligned_realloc (void *ptr, size_t size, size_t alignment)
 Reallocates memory on a specified alignment boundary.
 
static UtilExport void aligned_free (void *ptr)
 Frees a block of memory that was allocated with aligned_malloc/aligned_realloc.
 

Protected Attributes

MSTR mCapturedMXSCallstack
 
MSTR mCapturedCplusplusCallstack
 

Static Protected Attributes

static bool sMXSCallstackCaptureEnabled
 
static bool sCplusplusCallstackCaptureEnabled
 
static bool sInMXSCallstackCapture
 
static bool sInCplusplusCallstackCapture
 

Constructor & Destructor Documentation

◆ MAXScriptException()

MAXScriptException ( )
inline
36{}

◆ ~MAXScriptException()

virtual ~MAXScriptException ( )
inlinevirtual
37{}

Member Function Documentation

◆ sprin1()

◆ CaptureMXSCallstack()

void CaptureMXSCallstack ( bool  forceCapture = false,
bool  captureLocals = true 
)

◆ CaptureCplusplusCallstack()

void CaptureCplusplusCallstack ( int  skipFirstNStackLevels = 4,
bool  forceCapture = false 
)

◆ MXSCallstack()

const MSTR & MXSCallstack ( ) const
inline
42{ return mCapturedMXSCallstack; }
MSTR mCapturedMXSCallstack
Definition: exceptions.h:29

◆ CplusplusCallstack()

const MSTR & CplusplusCallstack ( ) const
inline
MSTR mCapturedCplusplusCallstack
Definition: exceptions.h:30

◆ MXSCallstackCaptureEnabled()

static void MXSCallstackCaptureEnabled ( bool  enabled)
static

◆ isMXSCallstackCaptureEnabled()

static bool isMXSCallstackCaptureEnabled ( )
static

◆ CplusplusCallstackCaptureEnabled()

static void CplusplusCallstackCaptureEnabled ( bool  enabled)
static

◆ isCplusplusCallstackCaptureEnabled()

static bool isCplusplusCallstackCaptureEnabled ( )
static

Member Data Documentation

◆ mCapturedMXSCallstack

MSTR mCapturedMXSCallstack
protected

◆ mCapturedCplusplusCallstack

MSTR mCapturedCplusplusCallstack
protected

◆ sMXSCallstackCaptureEnabled

bool sMXSCallstackCaptureEnabled
staticprotected

◆ sCplusplusCallstackCaptureEnabled

bool sCplusplusCallstackCaptureEnabled
staticprotected

◆ sInMXSCallstackCapture

bool sInMXSCallstackCapture
staticprotected

◆ sInCplusplusCallstackCapture

bool sInCplusplusCallstackCapture
staticprotected