Exceptions

This section describes the exception classes thrown by Imebra.

The ExceptionManager allows to retrieve the stack trace related to the last thrown Imebra exception.

ExceptionsManager

class imebra::ExceptionsManager

Return the stack trace for the last exception thrown in the current thread.

Public Static Functions

static std::string imebra::ExceptionsManagergetExceptionTrace()

Return a message containing the stack trace for the last exception thrown in the current thread.

Return
a message containing the stack trace

MissingDataElementError

class imebra::MissingDataElementError

Base class for the exceptions that report a missing element (Image, Tag, group, etc).

Inherits from std::runtime_error

Subclassed by imebra::MissingBufferError, imebra::MissingGroupError, imebra::MissingItemError, imebra::MissingTagError

Public Functions

imebra::MissingDataElementErrorMissingDataElementError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

MissingGroupError

class imebra::MissingGroupError

This exception is thrown when the client tries to read a tag from a group that does not exist.

Inherits from imebra::MissingDataElementError

Public Functions

imebra::MissingGroupErrorMissingGroupError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

MissingTagError

class imebra::MissingTagError

This exception is thrown when the client tries to read a value from a tag that does not exist (inside an existing group).

Inherits from imebra::MissingDataElementError

Public Functions

imebra::MissingTagErrorMissingTagError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

MissingBufferError

class imebra::MissingBufferError

This exception is thrown when the client tries to read a value from a buffer that does not exist (inside an existing tag).

Inherits from imebra::MissingDataElementError

Public Functions

imebra::MissingBufferErrorMissingBufferError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

MissingItemError

class imebra::MissingItemError

This exception is thrown when the client tries to read a value from an element that does not exist (inside an existing buffer).

Inherits from imebra::MissingDataElementError

Public Functions

imebra::MissingItemErrorMissingItemError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

StreamError

class imebra::StreamError

The base exception for all the exceptions thrown by the function in baseStream.

Inherits from std::runtime_error

Subclassed by imebra::StreamCloseError, imebra::StreamEOFError, imebra::StreamJpegTagInStreamError, imebra::StreamOpenError, imebra::StreamReadError, imebra::StreamWriteError

Public Functions

imebra::StreamErrorStreamError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

StreamOpenError

class imebra::StreamOpenError

Exception thrown when the stream cannot be open.

Inherits from imebra::StreamError

Subclassed by imebra::TCPAddressAlreadyInUse, imebra::TCPConnectionRefused

Public Functions

imebra::StreamOpenErrorStreamOpenError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

StreamReadError

class imebra::StreamReadError

Exception thrown when there is an error during the read phase.

Inherits from imebra::StreamError

Public Functions

imebra::StreamReadErrorStreamReadError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

StreamWriteError

class imebra::StreamWriteError

Exception thrown when there is an error during the write phase.

Inherits from imebra::StreamError

Public Functions

imebra::StreamWriteErrorStreamWriteError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

StreamCloseError

class imebra::StreamCloseError

Exception thrown when there are problems while closing of the stream.

Inherits from imebra::StreamError

Public Functions

imebra::StreamCloseErrorStreamCloseError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

StreamClosedError

class imebra::StreamClosedError

Exception thrown when a stream has been closed.

Inherits from imebra::StreamEOFError

Public Functions

imebra::StreamClosedErrorStreamClosedError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

TCPError

Warning

doxygenclass: Cannot find class “imebra::TCPError” in doxygen xml output for project “imebra” from directory: ./doxygen_xml/

TCPConnectionRefused

class imebra::TCPConnectionRefused

The peer refused the attempted connection.

Inherits from imebra::StreamOpenError

TCPAddressAlreadyInUse

class imebra::TCPAddressAlreadyInUse

The specified address is already in use by another socket.

Inherits from imebra::StreamOpenError

PermissionDeniedError

class imebra::PermissionDeniedError

The application does not have the permissions to carry out the operation.

Inherits from std::runtime_error

AddressError

class imebra::AddressError

Base class for the exceptions thrown by TCPAddress.

Inherits from std::runtime_error

Subclassed by imebra::AddressNoNameError, imebra::AddressServiceNotSupportedError, imebra::AddressTryAgainError

Public Functions

imebra::AddressErrorAddressError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

AddressTryAgainError

class imebra::AddressTryAgainError

Exception thrown by TCPAddress when a temporary malfunction prevented the address resolution. Trying again may cancel the error condition.

Inherits from imebra::AddressError

Public Functions

imebra::AddressTryAgainErrorAddressTryAgainError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

AddressNoNameError

class imebra::AddressNoNameError

Exception thrown by TCPAddress when the name cannot be resolved.

Inherits from imebra::AddressError

Public Functions

imebra::AddressNoNameErrorAddressNoNameError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

AddressServiceNotSupportedError

class imebra::AddressServiceNotSupportedError

Exception thrown by TCPAddress when the specified service is not supported.

Inherits from imebra::AddressError

Public Functions

imebra::AddressServiceNotSupportedErrorAddressServiceNotSupportedError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

DictionaryError

class imebra::DictionaryError

Base class for the exceptions thrown by the DicomDictionary.

Inherits from std::runtime_error

Subclassed by imebra::DictionaryUnknownDataTypeError, imebra::DictionaryUnknownTagError

Public Functions

imebra::DictionaryErrorDictionaryError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

DictionaryUnknownTagError

class imebra::DictionaryUnknownTagError

This exception is thrown by the DicomDictionary when it must return information for a tag that the DICOM standard does not define.

Inherits from imebra::DictionaryError

Public Functions

imebra::DictionaryUnknownTagErrorDictionaryUnknownTagError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

DictionaryUnknownDataTypeError

class imebra::DictionaryUnknownDataTypeError

This exception is thrown by the DicomDictionary when it must return information for a VR (data type) that the DICOM standard does not define.

Inherits from imebra::DictionaryError

Public Functions

imebra::DictionaryUnknownDataTypeErrorDictionaryUnknownDataTypeError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

CharsetConversionError

class imebra::CharsetConversionError

Base class for the exceptions thrown by charsetConversion.

Inherits from std::runtime_error

Subclassed by imebra::CharsetConversionNoSupportedTableError, imebra::CharsetConversionNoTableError, imebra::CharsetListDiffDefaultError

Public Functions

imebra::CharsetConversionErrorCharsetConversionError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

CharsetConversionNoTableError

class imebra::CharsetConversionNoTableError

Exception thrown when the requested charset is not supported by the DICOM standard.

Inherits from imebra::CharsetConversionError

Public Functions

imebra::CharsetConversionNoTableErrorCharsetConversionNoTableError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

CharsetConversionNoSupportedTableError

class imebra::CharsetConversionNoSupportedTableError

Exception thrown when the requested charset is not supported by the system.

Inherits from imebra::CharsetConversionError

Public Functions

imebra::CharsetConversionNoSupportedTableErrorCharsetConversionNoSupportedTableError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

CharsetListDiffDefaultError

class imebra::CharsetListDiffDefaultError

This exception is thrown when a conversion from an unicode string causes the dicom dataSet to change its default charset.

For instace, the default charset is ISO IR 6 but a value written by the application in one tag causes the default charset to switch to ISO 2022 IR 100.

Inherits from imebra::CharsetConversionError

Public Functions

imebra::CharsetListDiffDefaultErrorCharsetListDiffDefaultError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

CodecError

class imebra::CodecError

This is the base class for the exceptions thrown by the codec derived classes.

Inherits from std::runtime_error

Subclassed by imebra::CodecCorruptedFileError, imebra::CodecImageTooBigError, imebra::CodecWrongFormatError, imebra::CodecWrongTransferSyntaxError, imebra::DicomCodecError, imebra::InvalidSequenceItemError, imebra::JpegCodecError

Public Functions

imebra::CodecErrorCodecError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

CodecWrongFormatError

class imebra::CodecWrongFormatError

This exception is thrown when the file being parsed is not valid for the codec.

Inherits from imebra::CodecError

Public Functions

imebra::CodecWrongFormatErrorCodecWrongFormatError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

CodecCorruptedFileError

class imebra::CodecCorruptedFileError

This exception is thrown when the file being parsed is corrupted.

Inherits from imebra::CodecError

Public Functions

imebra::CodecCorruptedFileErrorCodecCorruptedFileError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

CodecWrongTransferSyntaxError

class imebra::CodecWrongTransferSyntaxError

This exception is thrown when the transfer syntax is not recognized by the codec.

Inherits from imebra::CodecError

Public Functions

imebra::CodecWrongTransferSyntaxErrorCodecWrongTransferSyntaxError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

CodecImageTooBigError

class imebra::CodecImageTooBigError

This exception is thrown when the codec reads a file that contains an image that is too big according to the codecFactory settings.

Consider using CodecFactory::setMaximumImageSize() to change the allowed maximum image size.

Inherits from imebra::CodecError

Public Functions

imebra::CodecImageTooBigErrorCodecImageTooBigError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

InvalidSequenceItemError

class imebra::InvalidSequenceItemError

This exception is thrown when the codec is attempting to create a sequence with an incompatible data type.

Inherits from imebra::CodecError

Public Functions

imebra::InvalidSequenceItemErrorInvalidSequenceItemError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

DataHandlerError

class imebra::DataHandlerError

Base class for the exceptions thrown by the data handlers.

Inherits from std::runtime_error

Subclassed by imebra::DataHandlerConversionError, imebra::DataHandlerCorruptedBufferError, imebra::DataHandlerInvalidDataError

Public Functions

imebra::DataHandlerErrorDataHandlerError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

DataHandlerConversionError

class imebra::DataHandlerConversionError

This exception is thrown when a data handler cannot convert a value from one data type to a different data type.

Inherits from imebra::DataHandlerError

Public Functions

imebra::DataHandlerConversionErrorDataHandlerConversionError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

DataHandlerCorruptedBufferError

class imebra::DataHandlerCorruptedBufferError

This exception is thrown when the data handler’s content is corrupted.

Inherits from imebra::DataHandlerError

Public Functions

imebra::DataHandlerCorruptedBufferErrorDataHandlerCorruptedBufferError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

DataHandlerInvalidDataError

class imebra::DataHandlerInvalidDataError

This exception is thrown when the client tries to write invalid data into a data handler.

Inherits from imebra::DataHandlerError

Public Functions

imebra::DataHandlerInvalidDataErrorDataHandlerInvalidDataError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

DataSetError

class imebra::DataSetError

This is the base class for the exceptions thrown by the dataSet.

Inherits from std::runtime_error

Subclassed by imebra::DataSetCorruptedOffsetTableError, imebra::DataSetDifferentFormatError, imebra::DataSetImageDoesntExistError, imebra::DataSetImagePaletteColorIsReadOnly, imebra::DataSetOldFormatError, imebra::DataSetUnknownTransferSyntaxError, imebra::DataSetWrongFrameError

Public Functions

imebra::DataSetErrorDataSetError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

DataSetDifferentFormatError

class imebra::DataSetDifferentFormatError

This exception is thrown when the application is trying to store an image in the dataSet but the dataSet already stores other images that have different attributes.

Inherits from imebra::DataSetError

Public Functions

imebra::DataSetDifferentFormatErrorDataSetDifferentFormatError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

DataSetUnknownTransferSyntaxError

class imebra::DataSetUnknownTransferSyntaxError

This exception is thrown when an unknown transfer syntax is being used while reading or writing a stream.

Inherits from imebra::DataSetError

Public Functions

imebra::DataSetUnknownTransferSyntaxErrorDataSetUnknownTransferSyntaxError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

DataSetWrongFrameError

class imebra::DataSetWrongFrameError

This exception is thrown when the application is storing several images in the dataSet but doesn’t store them in the right order.

The application must store the images following the frame order, without skipping frames.

Inherits from imebra::DataSetError

Public Functions

imebra::DataSetWrongFrameErrorDataSetWrongFrameError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

DataSetOldFormatError

class imebra::DataSetOldFormatError

This exception is thrown when the application is trying to store an image in an old Dicom format.

The application cannot store images in old Dicom formats (before Dicom3).

Inherits from imebra::DataSetError

Public Functions

imebra::DataSetOldFormatErrorDataSetOldFormatError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

DataSetImageDoesntExistError

class imebra::DataSetImageDoesntExistError

This exception is thrown when the an image that doesn’t exist is requested.

Inherits from imebra::DataSetError

Public Functions

imebra::DataSetImageDoesntExistErrorDataSetImageDoesntExistError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

DataSetImagePaletteColorIsReadOnly

class imebra::DataSetImagePaletteColorIsReadOnly

This exception is thrown when the the client tries to store a palette color image into the dataset.

Inherits from imebra::DataSetError

Public Functions

imebra::DataSetImagePaletteColorIsReadOnlyDataSetImagePaletteColorIsReadOnly(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

DataSetCorruptedOffsetTableError

class imebra::DataSetCorruptedOffsetTableError

This exception is thrown when the basic offset table is corrupted.

Inherits from imebra::DataSetError

Public Functions

imebra::DataSetCorruptedOffsetTableErrorDataSetCorruptedOffsetTableError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

DicomDirError

class imebra::DicomDirError

Base class from which the exceptions thrown by DicomDirEntry and DicomDir classes.

Inherits from std::runtime_error

Subclassed by imebra::DicomDirCircularReferenceError, imebra::DicomDirUnknownDirectoryRecordTypeError

Public Functions

imebra::DicomDirErrorDicomDirError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

DicomDirCircularReferenceError

class imebra::DicomDirCircularReferenceError

This exception is thrown when a call to DicomDir::setFirstRootRecord() or DicomDirEntry::setNextRecord() or DicomDirEntry::setFirstChildRecord() causes a circular reference between DicomDirEntry objects.

Inherits from imebra::DicomDirError

Public Functions

imebra::DicomDirCircularReferenceErrorDicomDirCircularReferenceError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

DicomDirUnknownDirectoryRecordTypeError

class imebra::DicomDirUnknownDirectoryRecordTypeError

Exception thrown when an unknown record type is detected in a DicomDirEntry.

Inherits from imebra::DicomDirError

Public Functions

imebra::DicomDirUnknownDirectoryRecordTypeErrorDicomDirUnknownDirectoryRecordTypeError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

HuffmanError

class imebra::HuffmanError

Base class for the exceptions thrown by the Huffman codec.

Inherits from std::runtime_error

Subclassed by imebra::HuffmanCreateTableError, imebra::HuffmanReadError, imebra::HuffmanWriteError

Public Functions

imebra::HuffmanErrorHuffmanError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

HuffmanCreateTableError

class imebra::HuffmanCreateTableError

Exception thrown when the Huffman codec cannot create the Huffman codes.

Inherits from imebra::HuffmanError

Public Functions

imebra::HuffmanCreateTableErrorHuffmanCreateTableError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

HuffmanReadError

class imebra::HuffmanReadError

Exception thrown when the Huffman codec tries to read an invalid code.

Inherits from imebra::HuffmanError

Public Functions

imebra::HuffmanReadErrorHuffmanReadError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

HuffmanWriteError

class imebra::HuffmanWriteError

Exception thrown when the Huffman codec tries to write an invalid code.

Inherits from imebra::HuffmanError

Public Functions

imebra::HuffmanWriteErrorHuffmanWriteError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

ImageError

class imebra::ImageError

This is the base class for the exceptions thrown by the Image class.

Inherits from std::runtime_error

Subclassed by imebra::ImageInvalidSizeError, imebra::ImageUnknownColorSpaceError, imebra::ImageUnknownDepthError

Public Functions

imebra::ImageErrorImageError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

ImageUnknownDepthError

class imebra::ImageUnknownDepthError

This exception is thrown when an unknown depth is specified as a parameter.

Inherits from imebra::ImageError

Public Functions

imebra::ImageUnknownDepthErrorImageUnknownDepthError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

ImageUnknownColorSpaceError

class imebra::ImageUnknownColorSpaceError

This exception is thrown when an unknown color space is specified in the function create().

Inherits from imebra::ImageError

Public Functions

imebra::ImageUnknownColorSpaceErrorImageUnknownColorSpaceError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

ImageInvalidSizeError

class imebra::ImageInvalidSizeError

This exception is thrown when an invalid size in pixels is specified in the Image constructor.

Inherits from imebra::ImageError

Public Functions

imebra::ImageInvalidSizeErrorImageInvalidSizeError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

TransformError

class imebra::TransformError

Base class for the exceptions thrown by the transforms.

Inherits from std::runtime_error

Subclassed by imebra::ColorTransformError, imebra::ColorTransformsFactoryError, imebra::ModalityVOILUTError, imebra::TransformDifferentHighBitError, imebra::TransformHighBitError, imebra::TransformInvalidAreaError

Public Functions

imebra::TransformErrorTransformError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

TransformInvalidAreaError

class imebra::TransformInvalidAreaError

Exception thrown when the image areas to be processed are out of bounds.

Inherits from imebra::TransformError

Public Functions

imebra::TransformInvalidAreaErrorTransformInvalidAreaError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

TransformDifferentHighBitError

class imebra::TransformDifferentHighBitError

Exception thrown when a Transform cannot process images with different high bit.

Inherits from imebra::TransformError

Public Functions

imebra::TransformDifferentHighBitErrorTransformDifferentHighBitError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

ColorTransformError

class imebra::ColorTransformError

This is the base class for the exceptions thrown by the color transform classes.

Inherits from imebra::TransformError

Subclassed by imebra::ColorTransformWrongColorSpaceError

Public Functions

imebra::ColorTransformErrorColorTransformError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

ColorTransformWrongColorSpaceError

class imebra::ColorTransformWrongColorSpaceError

This exception is thrown when a color transform must convert between two color spaces that it does not support.

Inherits from imebra::ColorTransformError

Public Functions

imebra::ColorTransformWrongColorSpaceErrorColorTransformWrongColorSpaceError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

ColorTransformsFactoryError

class imebra::ColorTransformsFactoryError

This is the base class for the exceptions thrown by colorTransformsFactory.

Inherits from imebra::TransformError

Subclassed by imebra::ColorTransformsFactoryNoTransformError

Public Functions

imebra::ColorTransformsFactoryErrorColorTransformsFactoryError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

ColorTransformsFactoryNoTransformError

class imebra::ColorTransformsFactoryNoTransformError

This exception is thrown by the function ColorTransformsFactory::getTransform() when it cannot find any transform that can convert the specified color spaces.

Inherits from imebra::ColorTransformsFactoryError

Public Functions

imebra::ColorTransformsFactoryNoTransformErrorColorTransformsFactoryNoTransformError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

TransformHighBitError

class imebra::TransformHighBitError

Inherits from imebra::TransformError

Subclassed by imebra::TransformHighBitDifferentColorSpacesError

Public Functions

imebra::TransformHighBitErrorTransformHighBitError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

TransformHighBitDifferentColorSpacesError

class imebra::TransformHighBitDifferentColorSpacesError

Inherits from imebra::TransformHighBitError

Public Functions

imebra::TransformHighBitDifferentColorSpacesErrorTransformHighBitDifferentColorSpacesError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

StreamEOFError

class imebra::StreamEOFError

Exception thrown when an attempt to read past the end of the file is made.

Inherits from imebra::StreamError

Subclassed by imebra::StreamClosedError

Public Functions

imebra::StreamEOFErrorStreamEOFError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

StreamJpegTagInStreamError

class imebra::StreamJpegTagInStreamError

Exception thrown when a jpeg tag is found but wasn’t expected.

Inherits from imebra::StreamError

Public Functions

imebra::StreamJpegTagInStreamErrorStreamJpegTagInStreamError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

ModalityVOILUTError

class imebra::ModalityVOILUTError

This exception is thrown by modalityVOILUT when the images passed to the transform are not monochromatic.

Inherits from imebra::TransformError

Public Functions

imebra::ModalityVOILUTErrorModalityVOILUTError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

DicomCodecError

class imebra::DicomCodecError

This is the base class for the exceptions thrown by the dicom codec (dicomCodec).

Inherits from imebra::CodecError

Subclassed by imebra::DicomCodecDepthLimitReachedError

Public Functions

imebra::DicomCodecErrorDicomCodecError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

DicomCodecDepthLimitReachedError

class imebra::DicomCodecDepthLimitReachedError

This exception is thrown when dicomCodec::parseStream reaches the maximum depth for embedded datasets.

Inherits from imebra::DicomCodecError

Public Functions

imebra::DicomCodecDepthLimitReachedErrorDicomCodecDepthLimitReachedError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

JpegCodecError

class imebra::JpegCodecError

Base class for the exceptions thrown by the jpeg codec.

Inherits from imebra::CodecError

Subclassed by imebra::JpegCodecCannotHandleSyntaxError

Public Functions

imebra::JpegCodecErrorJpegCodecError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

JpegCodecCannotHandleSyntaxError

class imebra::JpegCodecCannotHandleSyntaxError

Exception thrown when the jpeg variant cannot be handled.

Inherits from imebra::JpegCodecError

Public Functions

imebra::JpegCodecCannotHandleSyntaxErrorJpegCodecCannotHandleSyntaxError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

ImebraBadAlloc

class imebra::ImebraBadAlloc

Inherits from std::bad_alloc

MemoryError

class imebra::MemoryError

Base exception for errors in ReadMemory and ReadWriteMemory.

Inherits from std::runtime_error

Subclassed by imebra::MemorySizeError

Public Functions

imebra::MemoryErrorMemoryError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

MemorySizeError

class imebra::MemorySizeError

Exception throw when the memory size is too small for the requested operation.

Inherits from imebra::MemoryError

Public Functions

imebra::MemorySizeErrorMemorySizeError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

LutError

class imebra::LutError

This is the base class for the exceptions thrown by the LUT class.

Inherits from std::runtime_error

Subclassed by imebra::LutCorruptedError

Public Functions

imebra::LutErrorLutError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

LutCorruptedError

class imebra::LutCorruptedError

This exception is thrown by the lut class when the the LUT information is corrupted.

Inherits from imebra::LutError

Public Functions

imebra::LutCorruptedErrorLutCorruptedError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

AcseError

class imebra::AcseError

Exception thrown by the ACSE services (negotiation).

Inherits from std::runtime_error

Subclassed by imebra::AcseCorruptedMessageError, imebra::AcseNoPayloadError, imebra::AcseNoTransferSyntaxError, imebra::AcsePresentationContextNotRequestedError, imebra::AcseRejectedAssociationError, imebra::AcseTooManyOperationsInvokedError, imebra::AcseTooManyOperationsPerformedError, imebra::AcseWrongIdError, imebra::AcseWrongRoleError

Public Functions

imebra::AcseErrorAcseError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

AcseCorruptedMessageError

class imebra::AcseCorruptedMessageError

Exception thrown by the ACSE services when an ACSE message is corrupted.

Inherits from imebra::AcseError

Public Functions

imebra::AcseCorruptedMessageErrorAcseCorruptedMessageError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

AcseNoTransferSyntaxError

class imebra::AcseNoTransferSyntaxError

Exception thrown when no transfer syntax was negotiated for a presentation context.

Inherits from imebra::AcseError

AcsePresentationContextNotRequestedError

class imebra::AcsePresentationContextNotRequestedError

Exception thrown by the ACSE services when the message’s presentation context was not requested during the association negotiation.

Inherits from imebra::AcseError

Public Functions

imebra::AcsePresentationContextNotRequestedErrorAcsePresentationContextNotRequestedError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

AcseWrongRoleError

class imebra::AcseWrongRoleError

Exception thrown by the ACSE services when a command is sent to a destination that cannot accept it.

Inherits from imebra::AcseError

Public Functions

imebra::AcseWrongRoleErrorAcseWrongRoleError(const std::string &message)

Constructor.

Parameters
  • message: the message to store into the exception

AcseWrongIdError

class imebra::AcseWrongIdError

Base class for the exception related to a wrong message ID.

Inherits from imebra::AcseError

Subclassed by imebra::AcseWrongCommandIdError, imebra::AcseWrongResponseIdError

AcseWrongResponseIdError

class imebra::AcseWrongResponseIdError

Exception thrown when a response ID is related to a command that has already been responded to or was never sent.

Inherits from imebra::AcseWrongIdError

AcseWrongCommandIdError

class imebra::AcseWrongCommandIdError

Exception thrown when a command has a wrong message ID.

Inherits from imebra::AcseWrongIdError

AcseRejectedAssociationError

class imebra::AcseRejectedAssociationError

Base class for the association rejection exceptions.

Inherits from imebra::AcseError

Subclassed by imebra::AcseSCPAcseProtocolVersionNotSupportedError, imebra::AcseSCPNoReasonGivenError, imebra::AcseSCPPresentationLocalLimitExcededError, imebra::AcseSCPPresentationReservedError, imebra::AcseSCPPresentationTemporaryCongestionError, imebra::AcseSCUApplicationContextNameNotSupportedError, imebra::AcseSCUCalledAETNotRecognizedError, imebra::AcseSCUCallingAETNotRecognizedError, imebra::AcseSCUNoReasonGivenError

Public Functions

bool imebra::AcseRejectedAssociationErrorisPermanent() const

Returns true if the rejection is permanent.

Return
true if the rejection is permanent, false otherwise

bool imebra::AcseRejectedAssociationErrorisTemporary() const

Returns true if the rejection is temporary.

Return
true if the rejection is temporary, false otherwise

AcseSCUNoReasonGivenError

class imebra::AcseSCUNoReasonGivenError

Generic exception thrown when the association is rejected.

Inherits from imebra::AcseRejectedAssociationError

AcseSCUApplicationContextNameNotSupportedError

class imebra::AcseSCUApplicationContextNameNotSupportedError

Exception thrown when the association is rejected because the application context name is not supported.

Inherits from imebra::AcseRejectedAssociationError

AcseSCUCallingAETNotRecognizedError

class imebra::AcseSCUCallingAETNotRecognizedError

Exception thrown when the association is rejected because the calling AE title is not recognized.

Inherits from imebra::AcseRejectedAssociationError

AcseSCUCalledAETNotRecognizedError

class imebra::AcseSCUCalledAETNotRecognizedError

Exception thrown when the association is rejected because the called AE title is not recognized.

Inherits from imebra::AcseRejectedAssociationError

AcseSCPNoReasonGivenError

class imebra::AcseSCPNoReasonGivenError

Exception thrown when the association is rejected by the SCP without any particular reason given.

Inherits from imebra::AcseRejectedAssociationError

AcseSCPAcseProtocolVersionNotSupportedError

class imebra::AcseSCPAcseProtocolVersionNotSupportedError

Exception thrown when the association is rejected by the SCP because it does not support the requested protocol version.

Inherits from imebra::AcseRejectedAssociationError

AcseSCPPresentationReservedError

class imebra::AcseSCPPresentationReservedError

Exception thrown when the association is rejected by the SCP because the selected presentation context is reserved.

Inherits from imebra::AcseRejectedAssociationError

AcseSCPPresentationTemporaryCongestionError

class imebra::AcseSCPPresentationTemporaryCongestionError

Exception thrown when the association is rejected by the SCP because there is a temporary congestion.

Inherits from imebra::AcseRejectedAssociationError

AcseSCPPresentationLocalLimitExcededError

class imebra::AcseSCPPresentationLocalLimitExcededError

Exception thrown when the association is rejected by the SCP because is out of resources.

Inherits from imebra::AcseRejectedAssociationError

AcseTooManyOperationsPerformedError

class imebra::AcseTooManyOperationsPerformedError

Exception thrown when too many simultaneous operations have been requested.

Inherits from imebra::AcseError

AcseTooManyOperationsInvokedError

class imebra::AcseTooManyOperationsInvokedError

Exception thrown when too many simultaneous operations have been invoked.

Inherits from imebra::AcseError

AcseNoPayloadError

class imebra::AcseNoPayloadError

Exception thrown when a command does not have a payload but it should have one.

Inherits from imebra::AcseError

DimseError

class imebra::DimseError

Base class for the exceptions thrown by the DIMSE services.

Inherits from std::runtime_error

Subclassed by imebra::DimseInvalidCommand

DimseInvalidCommand

class imebra::DimseInvalidCommand

Exception thrown when a DIMSE command cannot be validated.

Inherits from imebra::DimseError