* @license http://www.gnu.org/licenses/gpl.html GNU General Public * License (GPL) * @package PEL */ /** * Exception indicating a problem with an entry. * * @author Martin Geisler * @package PEL * @subpackage Exception */ class PelEntryException extends PelException { /** * The IFD type (if known). * * @var int */ protected $type; /** * The tag of the entry (if known). * * @var PelTag */ protected $tag; /** * Get the IFD type associated with the exception. * * @return int one of {@link PelIfd::IFD0}, {@link PelIfd::IFD1}, * {@link PelIfd::EXIF}, {@link PelIfd::GPS}, or {@link * PelIfd::INTEROPERABILITY}. If no type is set, null is returned. */ public function getIfdType() { return $this->type; } /** * Get the tag associated with the exception. * * @return PelTag the tag. If no tag is set, null is returned. */ public function getTag() { return $this->tag; } }