Class: RequestResultException

Source Location: /CORE/system/classes/exception/RequestResultException.php

Class RequestResultException

Class Overview

This represents a RequestResultException, that can be used to create a Exception depending on a AdminRequestResult.

We fetch the Error Code by calling:

  1. $result->getValue('code')

And the Message by calling:

  1. $result->getMessage()

If none could be found, we use the Default Code 'Unknown'.

Located in /CORE/system/classes/exception/RequestResultException.php [line 46]

LogEntry
   |
   --CMSException
      |
      --CoreException
         |
         --AdministrationException
            |
            --RequestResultException
Author(s):
  • Kevin Papst
Information Tags:
Version:  $Id: RequestResultException.php,v 1.4 2006/11/26 22:04:12 kpapst Exp $
Copyright:  Copyright (C) 2002-2006 Kevin Papst
License:  GNU Public License

Properties

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From AdministrationException

AdministrationException::AdministrationException()
Creates a new AdministrationException.
AdministrationException::getURL()
Gets the URL of this Exception.
AdministrationException::setURL()
Sets the URL of this Exception. Mostly used for showing Back Links!

Inherited From CoreException

CoreException::CoreException()
Creates a new Core Exception.
CoreException::getLayout()
Return the Layout Name these Errors are represented by.

Inherited From CMSException

CMSException::CMSException()
Creates a new CMSException.
CMSException::getCode()
Returns the Error Code.
CMSException::logException()
Returns whether this Error should write an Log Message or not.
CMSException::toString()

Inherited From LogEntry

LogEntry::LogEntry()
Creates a new LogEntry.
LogEntry::getFilename()
LogEntry::getLevel()
Returns the entries leveƶ.
LogEntry::getLinenum()
LogEntry::getMessage()
Returns the Error Message.
LogEntry::getNamespace()
Return the namespace or an empty string, if no namesapce is configured.
LogEntry::setFilename()
LogEntry::setLinenum()
LogEntry::setNamespace()
LogEntry::toString()

[ Top ]
Property Summary
mixed   $DEFAULT_CODE   Identifies the Default Code 'Unknown';

[ Top ]
Method Summary
RequestResultException   RequestResultException()   Creates a new RequestResultException.

[ Top ]
Properties
mixed   $DEFAULT_CODE = 'Unknown' [line 51]

Identifies the Default Code 'Unknown';


[ Top ]
Methods
Constructor RequestResultException  [line 60]

  RequestResultException RequestResultException( AdminRequestResult $result, [String $url = '']  )

Creates a new RequestResultException.

Parameters:
AdminRequestResult   $result:  the AdminRequestResult to fill the Exception values
String   $url:  the URL of this Exception (can be used for creating Back links)

API Tags:
Access:  public


[ Top ]