Class RequestResultException

Description

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'.

  • version: $Id: RequestResultException.php,v 1.4 2006/11/26 22:04:12 kpapst Exp $
  • copyright: Copyright (C) 2002-2006 Kevin Papst
  • author: Kevin Papst
  • license: GNU Public License
CMSException
   |
   --CoreException
      |
      --AdministrationException
         |
         --RequestResultException
Variable Summary
Method Summary
RequestResultException RequestResultException (AdminRequestResult $result, [String $url = ''])
Variables
mixed $DEFAULT_CODE = 'Unknown' (line 51)

Identifies the Default Code 'Unknown';

Methods
Constructor RequestResultException (line 60)

Creates a new RequestResultException.

  • access: public
RequestResultException RequestResultException (AdminRequestResult $result, [String $url = ''])
  • AdminRequestResult $result: the AdminRequestResult to fill the Exception values
  • String $url: the URL of this Exception (can be used for creating Back links)

Inherited Methods

Inherited From AdministrationException

AdministrationException::AdministrationException()
AdministrationException::getURL()
AdministrationException::setURL()

Inherited From CoreException

CoreException::CoreException()
CoreException::getLayout()

Inherited From CMSException

CMSException::CMSException()
CMSException::getCode()
CMSException::getMessage()
CMSException::logException()
CMSException::toString()

Documentation generated by phpDocumentor 1.3.1