File_Fortune
[ class tree: File_Fortune ] [ index: File_Fortune ] [ all elements ]

File: Exception.php

Source Location: /File_Fortune-0.9.0/File/Fortune/Exception.php

Classes:

File_Fortune_Exception
File_Fortune_Exception: Exception classes for File_Fortune and File_Fortune_Writer
File_Fortune_Exception_NoFilename
File_Fortune_Exception_NoFilename is thrown whenever an attempt is made to open a fortune file without specifying a file name.
File_Fortune_Exception_NoFile
File_Fortune_Exception_NoFile is thrown whenever an attempt is made to read from an unopened file.
File_Fortune_Exception_BadFile
File_Fortune_Exception_BadFile is thrown whenever a file cannot be opened (missing file, error opening file).
File_Fortune_Exception_BadHeaderFile
File_Fortune_Exception_BadHeaderFile is thrown if an error occurs opening the header file or if the header file is malformed.
File_Fortune_Exception_HeaderNotRead
File_Fortune_Exception_HeaderNotRead is thrown whenever an operation requiring elements obtained from the header is called and those elements are missing.
File_Fortune_Exception_InvalidCount
File_Fortune_Exception_InvalidCount is thrown when an attempt is made to read a fortune ID that is beyond the number of fortunes available in the file, and all fortunes have been previously read into File_Fortune::$fortunes.
File_Fortune_Exception_NotOpen
File_Fortune_Exception_NotOpen is thrown when an attempt is made to read from an unopened fortune file.
File_Fortune_Exception_InvalidID
File_Fortune_Exception_InvalidID is thrown when an attempt is made to read a fortune ID for which there is no corresponding offset.
File_Fortune_Exception_Offset
File_Fortune_Exception_Offset is thrown when reading from a fortune file and fseek() is unable to seek to the desired fortune offset.
File_Fortune_Writer_Exception
File_Fortune_Writer base exception class.
File_Fortune_Writer_Exception_FileOpen
File_Fortune_Writer_Exception_FileOpen is thrown whenever fopen() is unable to open a file for a write operation.
File_Fortune_Writer_Exception_FileLock
File_Fortune_Writer_Exception_FileLock is thrown whenever flock() is unable to obtain a file lock.
File_Fortune_Writer_Exception_FilePos
File_Fortune_Writer_Exception_FilePos is thrown whenever ftell() is unable to return the current position in the file.

Page Details:

File_Fortune_Exception: Exception classes for File_Fortune and File_Fortune_Writer
  • Author: Matthew Weier O'Phinney <mweierophinney@gmail.com>
  • Version: CVS: $Id:$
  • Copyright: 2005, Matthew Weier O'Phinney

Includes:

require_once('PEAR/Exception.php') [line 15]
Utilize PEAR_Exception for error handling

Documentation generated on Mon, 11 Mar 2019 14:18:34 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.