Errors and exceptions in strategy

Issue #361 resolved
Benjamin Cordes created an issue

Code in SecondaryPegUtils is very long, and nested with if else. Leaving this open for discussion before changing anything. In Primary this is already implemented, i.e. the following style:

if (ErrorCondition) {
//return error
}

//continue with normal operation

versus

if (!Error) {
//normal operation
//..
//..
//..
} else {
error
}