Packagecom.yworks.io.graphml.reader
Interfacepublic interface IGraphMLParseErrorHandler

Error handler class to manage errors during the parsing process. This can be used to filter exceptions thrown during the parsing process.



Public Methods
 MethodDefined By
  
error(location:Object, message:String, e:Error, context:GraphMLParseContext):void
Handles an error message that originates from the parser or subordinate classes.
IGraphMLParseErrorHandler
  
fatal(location:Object, message:String, e:Error, context:GraphMLParseContext):void
Handles a FATAL error message that originates from the parser or subordinate classes.
IGraphMLParseErrorHandler
  
warn(location:Object, message:String, e:Error, context:GraphMLParseContext):void
Handles an warning message that originates from the parser or subordinate classes.
IGraphMLParseErrorHandler
Method Detail
error()method
public function error(location:Object, message:String, e:Error, context:GraphMLParseContext):void

Handles an error message that originates from the parser or subordinate classes. Usually, this is a severe error condition that cannot be repaired, so this should be used for clean up and reporting, and then a new Error should be thrown.

Parameters

location:Object — identifier for the location of the error
 
message:String — a descriptive message of the error
 
e:Error — a reference to an Error, if the error has been caused by catching one
 
context:GraphMLParseContext — the current parse context when the error occured

fatal()method 
public function fatal(location:Object, message:String, e:Error, context:GraphMLParseContext):void

Handles a FATAL error message that originates from the parser or subordinate classes. This is a fatal error condition after wich it is not possible to resume, so this should only be used for clean up and reporting, and then a new Error should be thrown.

Parameters

location:Object — identifier for the location of the error
 
message:String — a descriptive message of the error
 
e:Error — a reference to an Error, if the error has been caused by catching one
 
context:GraphMLParseContext — the current parse context when the error occured

warn()method 
public function warn(location:Object, message:String, e:Error, context:GraphMLParseContext):void

Handles an warning message that originates from the parser or subordinate classes. Usually, this is an error condition that can be repaired. However, the caller is not required to continue after this warning, so all steps to handle the error should be done in the handler.

Parameters

location:Object — identifier for the location of the error
 
message:String — a descriptive message of the error
 
e:Error — a reference to an Error, if the error has been caused by catching one
 
context:GraphMLParseContext — the current parse context when the error occured