1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/System/IO/IOException.h
Halofreak1990 8f089dc2ab Added the current XFX directory tree.
WARNING!!! This revision cannot compile correctly. It is updated to reflect the many changes within the XFX project.
2010-12-04 16:14:34 +00:00

69 lines
1.7 KiB
C++

/********************************************************
* IOException.h *
* *
* XFX IOException definition file *
* Copyright © XFX Team. All Rights Reserved *
********************************************************/
#ifndef _SYSTEM_IO_IOEXCEPTION_
#define _SYSTEM_IO_IOEXCEPTION_
#include "../Exception.h"
namespace System
{
namespace IO
{
/// <summary>
/// The exception that is thrown when an I/O error occurs.
/// <summary>
class IOException : public SystemException
{
public:
IOException();
IOException(char* message);
};
/// <summary>
/// The exception that is thrown when part of a file or directory cannot be found.
/// </summary>
class DirectoryNotFoundException : public IOException
{
public:
DirectoryNotFoundException();
DirectoryNotFoundException(char* message);
};
/// <summary>
/// The exception that is thrown when reading is attempted past the end of a stream.
/// </summary>
class EndOfStreamException : public IOException
{
public:
EndOfStreamException();
EndOfStreamException(char* message);
};
/// <summary>
/// The exception that is thrown when an attempt to access a file that does not exist on disk fails.
/// </summary>
class FileNotFoundException : public IOException
{
public:
FileNotFoundException();
FileNotFoundException(char* message);
};
/// <summary>
/// The exception that is thrown when a pathname or filename is longer than the system-defined maximum length.
/// </summary>
class PathTooLongException : public IOException
{
public:
PathTooLongException();
PathTooLongException(char* message);
};
}
}
#endif //_SYSTEM_IO_IOEXCEPTION_