Logo Search packages:      
Sourcecode: djvulibre version File versions

const char * GException::get_cause ( void   )  const

Returns the string describing the cause of the exception. The returned pointer is never null. Exception handlers should not rely on the value of the string cause#. As a convention however, string ByteStream::EndOfFile# is used when reaching an unexpected end-of-file condition and string DataPool::Stop# is used when the user interrupts the execution. These strings can be tested by the exception handlers, with cmp_cause#. Similar conventional strings may be defined in the future. They all will be small strings with only uppercase characters.

Definition at line 174 of file GException.cpp.

Referenced by perror().

  if (! cause)
    return "Invalid exception";
  return cause;

Generated by  Doxygen 1.6.0   Back to index