forked from SignpostMarv/libAurora.php
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathload.php
65 lines (50 loc) · 1.98 KB
/
load.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
//! @brief This file loads all the code.
//! @author SignpostMarv
namespace Aurora{
//! This interface exists purely to give client code the ability to detect all Aurora-specific exception classes in one go.
//! The purpose of this behaviour is that instances of Aurora::Exception will be more or less "safe" for public consumption.
interface Exception{
}
//! Aurora-specific RuntimeException
class RuntimeException extends \RuntimeException implements Exception{
}
//! Aurora-specific InvalidArgumentException
class InvalidArgumentException extends \InvalidArgumentException implements Exception{
}
//! Aurora-specific UnexpectedValueException
class UnexpectedValueException extends \UnexpectedValueException implements Exception{
}
//! Aurora-specific LengthException
class LengthException extends \LengthException implements Exception{
}
//! Aurora-specific BadMethodCallException
class BadMethodCallException extends \BadMethodCallException implements Exception{
}
}
namespace libAurora{
//! This interface exists purely to give client code the ability to detect all libAurora-specific exception classes in one go.
//! The purpose of this behaviour is that instances of libAurora::Exception will be more or less "safe" for public consumption.
interface Exception{
}
//! libAurora-specific RuntimeException
class RuntimeException extends \RuntimeException implements Exception{
}
//! libAurora-specific InvalidArgumentException
class InvalidArgumentException extends \InvalidArgumentException implements Exception{
}
//! libAurora-specific UnexpectedValueException
class UnexpectedValueException extends \UnexpectedValueException implements Exception{
}
//! libAurora-specific LengthException
class LengthException extends \LengthException implements Exception{
}
//! libAurora-specific BadMethodCallException
class BadMethodCallException extends \BadMethodCallException implements Exception{
}
}
namespace{
require_once('Aurora/load.php');
require_once('libAurora/load.php');
}
?>