PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / trunk
Booking for Appointments and Events Calendar – Amelia vtrunk
2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / vendor / microsoft / microsoft-graph / src / Exception / GraphException.php
ameliabooking / vendor / microsoft / microsoft-graph / src / Exception Last commit date
GraphException.php 5 years ago
GraphException.php
51 lines
1 <?php
2 /**
3 * Copyright (c) Microsoft Corporation. All Rights Reserved.
4 * Licensed under the MIT License. See License in the project root
5 * for license information.
6 *
7 * Exceptions File
8 * PHP version 7
9 *
10 * @category Library
11 * @package Microsoft.Graph
12 * @copyright 2016 Microsoft Corporation
13 * @license https://opensource.org/licenses/MIT MIT License
14 * @version GIT: 0.1.0
15 * @link https://graph.microsoft.io/
16 */
17
18 namespace Microsoft\Graph\Exception;
19
20 /**
21 * Class GraphException
22 *
23 * @category Library
24 * @package Microsoft.Graph
25 * @license https://opensource.org/licenses/MIT MIT License
26 * @link https://graph.microsoft.io/
27 */
28 class GraphException extends \Exception
29 {
30 /**
31 * Construct a new Graph Exception handler
32 *
33 * @param string $message The error to send
34 * @param int $code The error code associated with the error
35 * @param \Exception $previous The last error sent, defaults to null
36 */
37 public function __construct($message, $code = 0, $previous = null)
38 {
39 parent::__construct($message, $code, $previous);
40 }
41
42 /**
43 * Stringify the returned error and message
44 *
45 * @return string The returned string message
46 */
47 public function __toString()
48 {
49 return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
50 }
51 }