#ifndef HEPEXCEPTIONS_H #define HEPEXCEPTIONS_H // ---------------------------------------------------------------------- // // Exceptions.h - header defining all exceptions needed by the // HepTuple package. // // The following is a layout of the HepTuple Exceptions. // ZMexception // ZMxHepTuple // ZMxHepBadIO // ZMxHepCantCreateFile couldn't create this file // ZMxHepCantOpenFile couldn't open this file // ZMxHepCantReadFile couldn't read this record // ZMxHepCantWriteFile couldn't read this record // ZMxHepCantDeleteFile couldn't delete this file // ZMxHepCantRenameFile couldn't rename this file // ZMxHepCantGenerateName couldn't generate a new name for this file // ZMxHepCantAccess couldn't access object (directory) // ZMxHepUnrecognizedFile couldn't tell which type of manager to use // ZMxHepBadRequest // ZMxHepNotYet this request is yet to be implemented // ZMxHepUnsupported this request is unsupported in this context // ZMxHepIncompatible this request involves incompatible objects // ZMxHepTooBig this request exceeds an implementation bound // ZMxHepAlreadyDone this request has already been carried out // ZMxHepPremature this request has >= 1 unmet prerequisites // ZMxHepImproperUse this request is semantically incorrect // ZMxHepOutOfRangeValue this value is not allowed or not allowed here // ZMxHepTypeMismatch this type is not allowed or not allowed here // ZMxHepUnknownEntity // ZMxHepUnknownHepObj no such HepObj // ZMxHepUnknownHist no such histogram // ZMxHepUnknownNtuple no such ntuple // ZMxHepUnknownColumn no such column // ZMxHepUnknownBlock no such block // ZMxHepUnknownTitle no such title // ZMxHepUnknownID no such id // ZMxHepUnknownType no such type // ZMxHepUnusableEntity // ZMxHepUnmanagedItem this HepObj has no associated manager // ZMxHepLockedItem this object is locked // ZMxHepIllFormedItem this object is internally inconsistent // ZMxHepBadFormat the format is not gramatically correct // ZMxHepVacuousItem this object is devoid of meaningful content // ZMxHepCantMakeEntity // ZMxHepCantMakeHepObj unable to create this HepObj // ZMxHepCantMakeHist unable to create this histogram // ZMxHepCantMakeNtuple unable to create this ntuple // ZMxHepCantMakeDir unable to create a directory // ZMxHepCantMakeColumn unable to create this column // ZMxHepCantMakeBlock unable to create this block #include "Exceptions/ZMexception.h" #include "Exceptions/ZMthrow.h" ZM_USING_NAMESPACE( zmex ) ZM_BEGIN_NAMESPACE( zmht ) /* namespace zmht { */ ZMexStandardDefinition(ZMexception,ZMxHepTuple); ZMexStandardDefinition(ZMxHepTuple,ZMxHepBadIO); ZMexStandardDefinition(ZMxHepBadIO,ZMxHepCantCreateFile); ZMexStandardDefinition(ZMxHepBadIO,ZMxHepCantOpenFile); ZMexStandardDefinition(ZMxHepBadIO,ZMxHepCantReadFile); ZMexStandardDefinition(ZMxHepBadIO,ZMxHepCantWriteFile); ZMexStandardDefinition(ZMxHepBadIO,ZMxHepCantDeleteFile); ZMexStandardDefinition(ZMxHepBadIO,ZMxHepCantRenameFile); ZMexStandardDefinition(ZMxHepBadIO,ZMxHepCantGenerateName); ZMexStandardDefinition(ZMxHepBadIO,ZMxHepCantAccess); ZMexStandardDefinition(ZMxHepBadIO,ZMxHepUnrecognizedFile); ZMexStandardDefinition(ZMxHepTuple,ZMxHepBadRequest); ZMexStandardDefinition(ZMxHepBadRequest,ZMxHepNotYet); ZMexStandardDefinition(ZMxHepBadRequest,ZMxHepUnsupported); ZMexStandardDefinition(ZMxHepBadRequest,ZMxHepIncompatible); ZMexStandardDefinition(ZMxHepBadRequest,ZMxHepTooBig); ZMexStandardDefinition(ZMxHepBadRequest,ZMxHepAlreadyDone); ZMexStandardDefinition(ZMxHepBadRequest,ZMxHepPremature); ZMexStandardDefinition(ZMxHepBadRequest,ZMxHepImproperUse); ZMexStandardDefinition(ZMxHepImproperUse,ZMxHepOutOfRangeValue); ZMexStandardDefinition(ZMxHepImproperUse,ZMxHepTypeMismatch); ZMexStandardDefinition(ZMxHepTuple,ZMxHepUnknownEntity); ZMexStandardDefinition(ZMxHepUnknownEntity,ZMxHepUnknownHepObj); ZMexStandardDefinition(ZMxHepUnknownHepObj,ZMxHepUnknownHist); ZMexStandardDefinition(ZMxHepUnknownHepObj,ZMxHepUnknownNtuple); ZMexStandardDefinition(ZMxHepUnknownEntity,ZMxHepUnknownColumn); ZMexStandardDefinition(ZMxHepUnknownEntity,ZMxHepUnknownBlock); ZMexStandardDefinition(ZMxHepUnknownEntity,ZMxHepUnknownTitle); ZMexStandardDefinition(ZMxHepUnknownEntity,ZMxHepUnknownID); ZMexStandardDefinition(ZMxHepUnknownEntity,ZMxHepUnknownType); ZMexStandardDefinition(ZMxHepTuple,ZMxHepUnusableEntity); ZMexStandardDefinition(ZMxHepUnusableEntity,ZMxHepUnmanagedItem); ZMexStandardDefinition(ZMxHepUnusableEntity,ZMxHepLockedItem); ZMexStandardDefinition(ZMxHepUnusableEntity,ZMxHepIllFormedItem); ZMexStandardDefinition(ZMxHepIllFormedItem,ZMxHepBadFormat); ZMexStandardDefinition(ZMxHepUnusableEntity,ZMxHepVacuousItem); ZMexStandardDefinition(ZMxHepTuple,ZMxHepCantMakeEntity); ZMexStandardDefinition(ZMxHepCantMakeEntity,ZMxHepCantMakeHepObj); ZMexStandardDefinition(ZMxHepCantMakeHepObj,ZMxHepCantMakeHist); ZMexStandardDefinition(ZMxHepCantMakeHepObj,ZMxHepCantMakeNtuple); ZMexStandardDefinition(ZMxHepCantMakeHepObj,ZMxHepCantMakeDir); ZMexStandardDefinition(ZMxHepCantMakeEntity,ZMxHepCantMakeColumn); ZMexStandardDefinition(ZMxHepCantMakeEntity,ZMxHepCantMakeBlock); ZM_END_NAMESPACE( zmht ) /* } // namespace zmht */ #endif // HEPEXCEPTIONS_H