Changeset 888
- Timestamp:
- 08/31/07 18:24:59 (11 months ago)
- Files:
-
- trunk/src/main/php/net/stubbles/service/jsonrpc/stubJsonRpcProcessor.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisIncludeFilePageElement.php (modified) (3 diffs)
- trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisIncludeTemplatePageElement.php (modified) (3 diffs)
- trunk/src/main/php/net/stubbles/xml/stubXMLXIncludeStreamWrapper.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/service/jsonrpc/stubJsonRpcProcessor.php
r884 r888 304 304 $binder = stubRegistry::get('net.stubbles.ioc.stubBinder'); 305 305 if (($binder instanceof stubBinder) === false) { 306 throw new stub Exception('No instance of net.stubbles.ioc.stubBinder in registry.');306 throw new stubRuntimeException('No instance of net.stubbles.ioc.stubBinder in registry.'); 307 307 } 308 308 trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisIncludeFilePageElement.php
r818 r888 7 7 * @subpackage websites_memphis 8 8 */ 9 stubClassLoader::load('net.stubbles.util.stubRegistry', 9 stubClassLoader::load('net.stubbles.lang.exceptions.stubIOException', 10 'net.stubbles.util.stubRegistry', 10 11 'net.stubbles.websites.memphis.stubMemphisPageElement' 11 12 ); … … 62 63 * processes the page element 63 64 * 64 * @param stubRequest $request the request data65 * @param stubSession $session current session66 * @param stubResponse $response contains response data67 * @param array $context optional additional context data68 * @throws stub Exception65 * @param stubRequest $request the request data 66 * @param stubSession $session current session 67 * @param stubResponse $response contains response data 68 * @param array $context optional additional context data 69 * @throws stubIOException 69 70 */ 70 71 public function process(stubRequest $request, stubSession $session, stubResponse $response, array $context = array()) … … 72 73 $existsInBasePath = file_exists(self::$baseDir . DIRECTORY_SEPARATOR . $this->source); 73 74 if (false === $existsInBasePath && file_exists($this->source) === false) { 74 throw new stub Exception('The file ' . $this->source . ' does not exist or could not be read.');75 throw new stubIOException('The file ' . $this->source . ' does not exist or could not be read.'); 75 76 } 76 77 trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisIncludeTemplatePageElement.php
r887 r888 7 7 * @subpackage websites_memphis 8 8 */ 9 stubClassLoader::load('net.stubbles.websites.memphis.stubMemphisPageElement', 9 stubClassLoader::load('net.stubbles.lang.exceptions.stubIOException', 10 'net.stubbles.websites.memphis.stubMemphisPageElement', 10 11 'net.stubbles.websites.memphis.stubMemphisTemplate' 11 12 ); … … 48 49 * processes the page element 49 50 * 50 * @param stubRequest $request the request data51 * @param stubSession $session current session52 * @param stubResponse $response contains response data53 * @param array $context optional additional context data54 * @throws stub Exception51 * @param stubRequest $request the request data 52 * @param stubSession $session current session 53 * @param stubResponse $response contains response data 54 * @param array $context optional additional context data 55 * @throws stubIOException 55 56 */ 56 57 public function process(stubRequest $request, stubSession $session, stubResponse $response, array $context = array()) … … 61 62 62 63 if (file_exists($this->source) == false) { 63 throw new stub Exception('The template ' . $this->source . ' does not exist or could not be read.');64 throw new stubIOException('The template ' . $this->source . ' does not exist or could not be read.'); 64 65 } 65 66 trunk/src/main/php/net/stubbles/xml/stubXMLXIncludeStreamWrapper.php
r871 r888 7 7 * @subpackage xml 8 8 */ 9 stubClassLoader::load('net.stubbles.xml.stubXMLException', 9 stubClassLoader::load('net.stubbles.lang.exceptions.stubIOException', 10 'net.stubbles.xml.stubXMLException', 10 11 'net.stubbles.xml.xsl.stubXSLProcessor' 11 12 ); … … 99 100 * 100 101 * @param string $cachePath 101 * @throws stub Exception102 * @throws stubIOException 102 103 */ 103 104 public static function setCachePath($cachePath) … … 106 107 if (file_exists($cachePath) == false) { 107 108 if (!@mkdir($cachePath, 0700, true)) { 108 throw new stub Exception("Can not create cache directory " . $cachePath . '.');109 throw new stubIOException("Can not create cache directory " . $cachePath . '.'); 109 110 } 110 111 } … … 172 173 * processes the file and creates a cached version of it 173 174 * 175 * @throws stubIOException 174 176 * @throws stubXMLException 175 177 */ … … 199 201 libxml_use_internal_errors($previousErrorHandling); 200 202 if (!is_writeable($this->cachedFileName)) { 201 throw new stub Exception("Can not write cache file to {$this->cachedFileName}.");203 throw new stubIOException("Can not write cache file to {$this->cachedFileName}."); 202 204 } 203 205
