PythonTracebackErrorInterface Class Reference

#include <cpython.h>

Inheritance diagram for PythonTracebackErrorInterface:

Detailed Description

A PythonTracebackError is always part of an AgrregatedError which is further the cause in a PythonError. This error is never a top-level error. Contains information about the traceback if an exception.

Public Member Functions

MAXON_METHOD void SetUrl (const Url &url)
 
MAXON_METHOD const UrlGetUrl () const
 
MAXON_METHOD void SetLineNumber (Int line)
 
MAXON_METHOD Int GetLineNumber () const
 

Private Member Functions

 MAXON_INTERFACE (PythonTracebackErrorInterface, MAXON_REFERENCE_COPY_ON_WRITE, "net.maxon.python.interface.pythontracebackerror")
 

Member Function Documentation

◆ MAXON_INTERFACE()

MAXON_INTERFACE ( PythonTracebackErrorInterface  ,
MAXON_REFERENCE_COPY_ON_WRITE  ,
"net.maxon.python.interface.pythontracebackerror"   
)
private

◆ SetUrl()

MAXON_METHOD void SetUrl ( const Url url)

Sets the url of the traceback entry.

Parameters
[in]urlPath.

◆ GetUrl()

MAXON_METHOD const Url& GetUrl ( ) const

Returns the path of the traceback entry.

Returns
Path.

◆ SetLineNumber()

MAXON_METHOD void SetLineNumber ( Int  line)

Sets the line of the traceback entry.

Parameters
[in]lineLine number.

◆ GetLineNumber()

MAXON_METHOD Int GetLineNumber ( ) const

Returns line of the traceback entry.

Returns
Line number..