File: PermissionDeniedException.php

package info (click to toggle)
spotweb 20130826%2Bdfsg2-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,132 kB
  • ctags: 11,281
  • sloc: php: 31,367; xml: 1,009; sh: 148; makefile: 83
file content (21 lines) | stat: -rwxr-xr-x 498 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
class PermissionDeniedException extends CustomException {
	private $_permId = -1;
	private $_object = '';
	
	public function __construct($message = null, $code = 0) {
		$this->_permId = $message;
		$this->_object = $code;
		parent::__construct("Permission denied [" . $message . "] for objectid [" . $code . "]", 5);
	} # ctor
	
	function getPermId() {
		return $this->_permId;
	} # getPermId
	
	function getObject() {
		return $this->_object;
	} # getObject

} # class