BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
UnexpectedRecordSize Class Reference

#include <RawFileExceptions.h>

+ Inheritance diagram for UnexpectedRecordSize:

Public Member Functions

 UnexpectedRecordSize (const char *block_name, uint32_t expect, uint32_t value)
 
virtual ~UnexpectedRecordSize ()
 
virtual void print () const
 
- Public Member Functions inherited from RawFileException
virtual ~RawFileException ()
 

Detailed Description

Definition at line 59 of file RawFileExceptions.h.

Constructor & Destructor Documentation

◆ UnexpectedRecordSize()

UnexpectedRecordSize::UnexpectedRecordSize ( const char * block_name,
uint32_t expect,
uint32_t value )
inline

Definition at line 61 of file RawFileExceptions.h.

62 : m_blockName(block_name), m_expect(expect), m_value(value) {
63 }

◆ ~UnexpectedRecordSize()

virtual UnexpectedRecordSize::~UnexpectedRecordSize ( )
inlinevirtual

Definition at line 64 of file RawFileExceptions.h.

64{}

Member Function Documentation

◆ print()

void UnexpectedRecordSize::print ( ) const
virtual

Reimplemented from RawFileException.

Definition at line 25 of file RawFileExceptions.cxx.

25 {
26 std::cout << "[RawFile] The size of block \"" << m_blockName << "\" is expected as "
27 << m_expect << ", but got " << m_value << std::endl;
28}

The documentation for this class was generated from the following files: