Packagecom.yworks.io.graphml.writer
Interfacepublic interface IGraphMLWriteErrorHandler

Error handler class to manage errors during the writing process.



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

Handles an error message that originates from the writer 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 than 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 exception, if the error has been caused by catching one
 
context:GraphMLWriteContext — the current write context when the error occured

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

Handles an FATAL error message that originates from the writer 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 than a new GraphMLException or RuntimeException 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 exception, if the error has been caused by catching one
 
context:GraphMLWriteContext — the current write context when the error occured


Throws
GraphMLWriteException — propagated or new exception that notifies callers of this error
warn()method 
public function warn(location:Object, message:String, e:Error, context:GraphMLWriteContext):void

Handles an warning message that originates from the writer 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:GraphMLWriteContext — the current write context when the error occured