MAKS\AmqpAgent\Exception\AmqpAgentException
AMQP Agent base exception class.
Synopsis
- // Inherited members from Exception
- protected $message;
- protected $code;
- protected $file;
- protected $line;
- // methods
- public void __construct()
- public string __toString()
- public static void rethrow()
- public static void rethrowException()
- // Inherited methods from Exception
- public void __construct()
- public final string getMessage()
- public final Throwable getPrevious()
- public final mixed getCode()
- public final string getFile()
- public final int getLine()
- public final array getTrace()
- public final string getTraceAsString()
- public string __toString()
Hierarchy
Extends
Coverage
| Methods | 75% | 3 / 4 | 
| Lines | 94.74% | 18 / 19 | 
Members
protected
- $code
                —
                int
 The exception code
- $file
                —
                string
 The filename where the exception was created
- $line
                —
                int
 The line where the exception was created
- $message
                —
                string
 The exception message
Methods
public
- __construct() — Redefine the exception so message is not an optional parameter.
- __toString() — String representation of the object.
- rethrow() — Rethrows an exception with an additional message.
- rethrowException() — Rethrows an exception with an additional message.
Inherited from Exception
public
- __toString() — String representation of the exception
- getCode() — Gets the Exception code
- getFile() — Gets the file in which the exception was created
- getLine() — Gets the line in which the exception was created
- getMessage() — Gets the Exception message
- getPrevious() — Returns previous Exception
- getTrace() — Gets the stack trace
- getTraceAsString() — Gets the stack trace as a string
History
- 
            2021-01-12T21:10:22+00:00 (commit #62eec38)Author: Marwan Al-Soltany (MarwanAlsoltany@gmail.com) / Commiter: Marwan Al-Soltany (MarwanAlsoltany@gmail.com) Update amqp agent exception class * Change $wrap parameter defalut value of rethrow() method 
- 
            2021-01-12T21:10:21+00:00 (commit #f1e048d)Author: Marwan Al-Soltany (MarwanAlsoltany@gmail.com) / Commiter: Marwan Al-Soltany (MarwanAlsoltany@gmail.com) Update amqp agent exception class * Fix typos * Update DocBlocks 
- 
            2021-01-12T21:10:21+00:00 (commit #d09424b)Author: Marwan Al-Soltany (MarwanAlsoltany@gmail.com) / Commiter: Marwan Al-Soltany (MarwanAlsoltany@gmail.com) Add strict types declaration * Add declare(strict_types=1) to all files * Fix file header DocBlock spacing of all files 
- 
            2020-09-26T17:35:59+00:00 (commit #da0afdf)Author: Marwan Al-Soltany (MarwanAlsoltany@gmail.com) / Commiter: Marwan Al-Soltany (MarwanAlsoltany@gmail.com) Update amqp agent exception class * Add better type handling for $wrap parameter in rethrow method * Update rethrowException signature and internal method call 
- 
            2020-09-25T19:21:05+00:00 (commit #d3f2a88)Author: Marwan Al-Soltany (MarwanAlsoltany@gmail.com) / Commiter: Marwan Al-Soltany (MarwanAlsoltany@gmail.com) Fix issue of wrong FQN * Fix issue of wrong fully-qualified name when casting the class to a string * Change default message of rethrowException method to a more useful one * Add a new parameter to change the wrapping thrown exception class * Rename the method rethrowException to rethrow * Add rethrowException method as an alias for rethrow method 
- 
            2020-09-23T18:47:06+00:00 (commit #1a3f203)Author: Marwan Al-Soltany (MarwanAlsoltany@gmail.com) / Commiter: Marwan Al-Soltany (MarwanAlsoltany@gmail.com) Fix typos and update DocBlocks * Fix some typos in DockBlocks and other parts of the codebase * Add examples to classes DocBlocks 
- 
            2020-06-13T05:50:13+00:00 (commit #c96cf86)Author: Marwan Al-Soltany (MarwanAlsoltany@gmail.com) / Commiter: Marwan Al-Soltany (MarwanAlsoltany@gmail.com) Add basic exceptions * Add AmqpAgentException.php * Add MethodDoesNotExistException.php * Add PropertyDoesNotExistException.php