Introduced Error struct to store error attributes.