Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
IOException Class Reference
Inheritance diagram for IOException:

Public Member Functions

 __construct ($path, $type=null)
 Create new IOException.
 

Static Public Member Functions

static notFound ($path)
 Create new FileNotFound-Exception.
 
static notReadable ($path)
 Create new FileNotReadable-Exception.
 
static notWritable ($path)
 Create new FileNotWritable-Exception.
 
static readError ($path)
 Create new ReadError-Exception.
 
static writeError ($path)
 Create new WriteError-Exception.
 

Public Attributes

const NOT_FOUND = 1
 Flag telling the File could not be found.
 
const NOT_READABLE = 2
 Flag telling the File is not readable.
 
const NOT_WRITABLE = 3
 Flag telling the File is not writable.
 
const READ_ERROR = 4
 Flag telling there was a read error.
 
const WRITE_ERROR = 5
 Flag telling there was a read error.
 

Constructor & Destructor Documentation

◆ __construct()

IOException::__construct ( $path,
$type = null )

Create new IOException.

Parameters
string$pathSource of the problem
integer$typeType of the problem

Member Function Documentation

◆ notFound()

static IOException::notFound ( $path)
static

Create new FileNotFound-Exception.

Parameters
string$pathSource of the problem
Return values
IOExceptionnew FileNotFound-Exception

◆ notReadable()

static IOException::notReadable ( $path)
static

Create new FileNotReadable-Exception.

Parameters
string$pathSource of the problem
Return values
IOExceptionnew FileNotReadable-Exception

◆ notWritable()

static IOException::notWritable ( $path)
static

Create new FileNotWritable-Exception.

Parameters
string$pathSource of the problem
Return values
IOExceptionnew FileNotWritable-Exception

◆ readError()

static IOException::readError ( $path)
static

Create new ReadError-Exception.

Parameters
string$pathSource of the problem
Return values
IOExceptionnew ReadError-Exception

◆ writeError()

static IOException::writeError ( $path)
static

Create new WriteError-Exception.

Parameters
string$pathSource of the problem
Return values
IOExceptionnew WriteError-Exception

The documentation for this class was generated from the following file: