mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
Added implicit conversion to base types to all primary types (UInt32 et al) Added implicit conversion from System::String to const char*
59 lines
1.5 KiB
C++
59 lines
1.5 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
|
|
{
|
|
// The exception that is thrown when an I/O error occurs.
|
|
class IOException : public SystemException
|
|
{
|
|
public:
|
|
IOException();
|
|
IOException(char* message);
|
|
};
|
|
|
|
// The exception that is thrown when part of a file or directory cannot be found.
|
|
class DirectoryNotFoundException : public IOException
|
|
{
|
|
public:
|
|
DirectoryNotFoundException();
|
|
DirectoryNotFoundException(char* message);
|
|
};
|
|
|
|
// The exception that is thrown when reading is attempted past the end of a stream.
|
|
class EndOfStreamException : public IOException
|
|
{
|
|
public:
|
|
EndOfStreamException();
|
|
EndOfStreamException(char* message);
|
|
};
|
|
|
|
// The exception that is thrown when an attempt to access a file that does not exist on disk fails.
|
|
class FileNotFoundException : public IOException
|
|
{
|
|
public:
|
|
FileNotFoundException();
|
|
FileNotFoundException(char* message);
|
|
};
|
|
|
|
// The exception that is thrown when a pathname or filename is longer than the system-defined maximum length.
|
|
class PathTooLongException : public IOException
|
|
{
|
|
public:
|
|
PathTooLongException();
|
|
PathTooLongException(char* message);
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif //_SYSTEM_IO_IOEXCEPTION_
|