old_contents: class DuplicateName(Exception):
  
      def __init__(self, caller, *args, **kwargs):
          self.message = ("Duplicate name - "
                          "names have to be unique for a given "
                          "entity type & parent. ({})").format(caller)
          super(DuplicateName, self).__init__(self.message, *args, **kwargs)
  
  
  class UninitializedEntity(Exception):
  
      def __init__(self, *args, **kwargs):
          self.message = "The Entity being accessed is uninitialized or empty."
          super(UninitializedEntity, self).__init__(self.message, *args, **kwargs)
  
  
  class InvalidUnit(Exception):
  
      def __init__(self, what, where):
          self.message = "InvalidUnit: {} evoked at: {}".format(what, where)
          super(InvalidUnit, self).__init__(self.message)
  
  
  class InvalidAttrType(TypeError):
  
      def __init__(self, type_, value):
          self.message = ("Attribute requires type {} but {} "
                          "was provided.".format(type_, type(value)))
          super(InvalidAttrType, self).__init__(self.message)
  
  
  class InvalidEntity(Exception):
  
      def __init__(self, *args, **kwargs):
          self.message = "Invalid entity found in HDF5 file."
          super(InvalidEntity, self).__init__(self.message, *args, **kwargs)
  
new_contents: class DuplicateName(Exception):
  
      def __init__(self, caller, *args, **kwargs):
          self.message = ("Duplicate name - "
                          "names have to be unique for a given "
                          "entity type & parent. ({})").format(caller)
          super(DuplicateName, self).__init__(self.message, *args, **kwargs)
  
  
  class UninitializedEntity(Exception):
  
      def __init__(self, *args, **kwargs):
          self.message = "The Entity being accessed is uninitialized or empty."
          super(UninitializedEntity, self).__init__(self.message, *args, **kwargs)
  
  
  class InvalidUnit(Exception):
  
      def __init__(self, what, where):
          self.message = "InvalidUnit: {} evoked at: {}".format(what, where)
          super(InvalidUnit, self).__init__(self.message)
  
  
  class InvalidAttrType(TypeError):
  
      def __init__(self, type_, value):
          self.message = ("Attribute requires type {} but {} "
                          "was provided.".format(type_, type(value)))
          super(InvalidAttrType, self).__init__(self.message)
  
  
  class InvalidEntity(Exception):
  
      def __init__(self, *args, **kwargs):
          self.message = "Invalid entity found in HDF5 file."
          super(InvalidEntity, self).__init__(self.message, *args, **kwargs)
  
  
  class OutOfBounds(IndexError):
  
      def __init__(self, message, index):
          self.message = "{message} [at index: {index}]".format(message=message,
                                                                index=index)
          super(OutOfBounds, self).__init__(self.message)
  
  
  class IncompatibleDimensions(ValueError):
  
      def __init__(self, what, where):
          self.message = "IncompatibleDimensions: {} evoked at: {})".format(what,
                                                                            where)
          super(IncompatibleDimensions, self).__init__(self.message)
  
subject: Tag data access exceptions