mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 09:44:55 +02:00
First public release of MyAAC
This commit is contained in:
56
system/libs/pot/E_OTS_FileLoaderError.php
Normal file
56
system/libs/pot/E_OTS_FileLoaderError.php
Normal file
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
|
||||
/**#@+
|
||||
* @version 0.0.6
|
||||
* @since 0.0.6
|
||||
*/
|
||||
|
||||
/**
|
||||
* Code in this file bases on oryginal OTServ binary format loading C++ code (fileloader.h, fileloader.cpp).
|
||||
*
|
||||
* @package POT
|
||||
* @author Wrzasq <wrzasq@gmail.com>
|
||||
* @copyright 2007 (C) by Wrzasq
|
||||
* @license http://www.gnu.org/licenses/lgpl-3.0.txt GNU Lesser General Public License, Version 3
|
||||
*/
|
||||
|
||||
/**
|
||||
* Error during reading OTServ binary file.
|
||||
*
|
||||
* @package POT
|
||||
*/
|
||||
class E_OTS_FileLoaderError extends E_OTS_ErrorCode
|
||||
{
|
||||
/**
|
||||
* Unsupported file version.
|
||||
*/
|
||||
const ERROR_INVALID_FILE_VERSION = 1;
|
||||
/**
|
||||
* Could not open file.
|
||||
*/
|
||||
const ERROR_CAN_NOT_OPEN = 2;
|
||||
/**
|
||||
* Unexpected end of file.
|
||||
*/
|
||||
const ERROR_EOF = 4;
|
||||
/**
|
||||
* Failed to seek in given position in file.
|
||||
*/
|
||||
const ERROR_SEEK_ERROR = 5;
|
||||
/**
|
||||
* Attempted to execute operation on not opened file.
|
||||
*/
|
||||
const ERROR_NOT_OPEN = 6;
|
||||
/**
|
||||
* File corrupted.
|
||||
*/
|
||||
const ERROR_INVALID_FORMAT = 8;
|
||||
/**
|
||||
* Failed to read position in file.
|
||||
*/
|
||||
const ERROR_TELL_ERROR = 9;
|
||||
}
|
||||
|
||||
/**#@-*/
|
||||
|
||||
?>
|
Reference in New Issue
Block a user