public B error ( String errorCode ) { ErrorEventDefinition errorEventDefinition = createErrorEventDefinition ( errorCode ) ; element . getEventDefinitions ( ) . add ( errorEventDefinition ) ; return myself ; }
Sets an error definition for the given error code . If already an error with this code exists it will be used otherwise a new error is created .