AggregatedErrorInterface Class Reference 系统

#include <errorbase.h>

Inheritance diagram for AggregatedErrorInterface:

详细描述

Error that contains multiple errors. This error might be returned if multiple jobs of a group return errors. The GetMessage functions retrieves the combined output of all errors.

@MAXON_ANNOTATION{refclass=false}

公共成员函数

MAXON_METHOD Bool   AddError (const Error &error)
MAXON_METHOD Bool   AddError (Error &&error)
MAXON_METHOD Int   GetCount () const
const MAXON_METHOD Error &  GetError ( Int index) const

私有成员函数

  MAXON_INTERFACE ( AggregatedErrorInterface , MAXON_REFERENCE_COPY_ON_WRITE , "net.maxon.interface.aggregatederror")

成员函数文档编制

◆  MAXON_INTERFACE()

MAXON_INTERFACE ( AggregatedErrorInterface   ,
MAXON_REFERENCE_COPY_ON_WRITE   ,
"net.maxon.interface.aggregatederror"   
)
private

◆  AddError() [1/2]

MAXON_METHOD Bool AddError ( const Error &  error )

Adds an error to this AggregatedError .

参数
[in] error AggregatedError to add.

◆  AddError() [2/2]

MAXON_METHOD Bool AddError ( Error &&  error )

Adds an error to this AggregatedError .

参数
[in] error AggregatedError to add.

◆  GetCount()

MAXON_METHOD Int GetCount ( ) const

Returns the number of errors in this AggregatedError .

◆  GetError()

const MAXON_METHOD Error& GetError ( Int   index ) const

Returns the error at the given index.

参数
[in] index Index of the error. Index must be >= 0 and < GetCount() .
返回
Error stored at this index.