Files
harbour-core/harbour/samples/cccppc/prserr.cls
1999-11-09 01:37:27 +00:00

53 lines
1.5 KiB
OpenEdge ABL
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//
// $Id$
//
//*******************************************************************
// prserr.cls: Hib kat t rol˘ s kezel“ objektum.
// 1999, Csisz r Levente
class PRSERR OBJECT
attrib group // A hiba csoport neve. Źltal ban az osz ly neve,
// ahol a hiba defini lva van.
attrib id // A hiba azonosˇt˘ja.
attrib params // Az (group,id) p r mondja meg, hogy minek kell
// lennie.
attrib file
attrib line
attrib pos
nmethod defaultErrFormat(name)
// Megadja a hib t sz”vegesen default m˘don form zva.
nmethod getErrStr()
// Kiiˇrja a hib t form zva, sz”vegesen.
// Ha a {group,id} p ros regisztr lva van, akkor a printBlock-al
// megform zza, ha nem, akkor unknown error megjel”lssel.
rmethod oinit(group_and_id,params,file,line,pos)
// A group_and_id egy {group,id} p r.
// A params szerkezete a group_and_id  ltal van defini lva.
metaclass
attrib errDict // Egy t”mb, amiben {group,{id, printBlock},...}
// elemek vannak.
// A writeBlock mondja meg, hogyam kell kiˇrni az
// egyes hib kat.
rmethod onew(group_and_id,params,file,line,pos)
nmethod onewFromToken(group_and_id,params,token)
// A token file,line,pos- t haszn lja fel.
nmethod registerError(group_and_id,name,printBlock)
// Regisztr l egy hib t (hiba tˇpust)
// Az ilyen hib kat tudja azut n a getErrStr() form zva kiˇrni.
rmethod oinitclass()