SUMMARY:  INNER | FIELD | CONSTR | METHOD | FRIEND DETAIL:  FIELD | CONSTR | METHOD | FRIEND


Platform::Io
Class FileException

ThrowableType
   |
   +-Exception
        |
        +-IOException
             |
             +-FileException

Implemented in:
Platform.Io.File.h
Direct Known Subclasses:
AccessDeniedException, FileAlreadyExistsException, FileNotFoundException, InvalidFileHandleException, InvalidFileNameException

class FileException:
public IOException

Represents a general file system error.

Field Summarycollapse
protected Int errorCode
          A system-dependent error code associated with this exception.
protected String filePath
          The path of the file for which the exception was thrown.

Fields inherited from class Exceptioncollapse
errorMessage

Constructor Summarycollapse
FileException(Int code, const String& message, const String& path)
          Creates an exception with the specified code, message and path arguments.

Method Summarycollapse
Int code() const
          Retrieves a system-dependent error code associated with this exception.
const String& path() const
          Retrieves the file path.
String toString() const
          Returns a string representation of this exception.

Methods inherited from class Exceptioncollapse
message, toString

 

Field Detail

errorCode

protected Int errorCode

A system-dependent error code associated with this exception.


filePath

protected String filePath

The path of the file for which the exception was thrown.

 

Constructor Detail

FileException[inline]

FileException(Int code, const String& message, const String& path)

Creates an exception with the specified code, message and path arguments.

Parameters:
code - error code
message - error message
path - path of the file for which this exception was thrown

 

Method Detail

code[inline]

Int code() const

Retrieves a system-dependent error code associated with this exception.

Returns:
error code associated with this exception

path[inline]

const String& path() const

Retrieves the file path.

Returns:
the file path

toString[virtual, inline]

String toString() const

Returns a string representation of this exception. The format of the string is: message: path.

Returns:
a string representation of this exception
Overrides:
Exception::toString


SUMMARY:  INNER | FIELD | CONSTR | METHOD | FRIEND DETAIL:  FIELD | CONSTR | METHOD | FRIEND