Package | com.yworks.io.graphml.writer |
Interface | public interface IGraphMLWriteErrorHandler |
Method | Defined 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 |
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
|
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
|