]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - extlib/Stomp/Exception.php
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
[quix0rs-gnu-social.git] / extlib / Stomp / Exception.php
1 <?php
2 /**
3  *
4  * Copyright 2005-2006 The Apache Software Foundation
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18
19 /* vim: set expandtab tabstop=3 shiftwidth=3: */
20
21 /**
22  * A Stomp Connection
23  *
24  *
25  * @package Stomp
26  */
27 class StompException extends Exception
28 {
29     protected $_details;
30     
31     /**
32      * Constructor
33      *
34      * @param string $message Error message
35      * @param int $code Error code
36      * @param string $details Stomp server error details
37      */
38     public function __construct($message = null, $code = 0, $details = '')
39     {
40         $this->_details = $details;
41         
42         parent::__construct($message, $code);
43     }
44     
45     /**
46      * Stomp server error details
47      *
48      * @return string
49      */
50     public function getDetails()
51     {
52         return $this->_details;
53     }
54 }
55 ?>