HBObject() > Methods for error handling xHarbour Developers Network  

oHBObject:msgNotFound()

Handles unknown messages sent to an object.

Syntax

:msgNotFound( <cMessage> ) --> xReturn

Arguments

<cMessage>
This is a character string holding the symbolic name sent to the object self.

Return

If not overloaded, the method returns the result of the :error() method.

Description

Method :msgNotFound() is called when the symbolic name of a message sent to an object does not exist in the class or its super class(es). It receives as parameter a character string holding the message name that does not exist.

Note:  This method cannot be overloaded in a user-defined class with a regular METHOD declaration. :msgNotFound() is only replaced with the ERROR HANDLER declaration.


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe