Open
Description
e.g.
public getDataByException(Exception exception, Bool soft = false) -> ExceptionData {
var data = this
repeat {
if (soft) {
Console.log("Checking soft #exception.class against #{data.caught.map({_.type + " " + _.soft})}") // favors parameter soft over _.soft.
}
if (data.caught.any(c -> { (!soft || c.soft) && exception.class.isOfType(c.type) })) {
return data
} else if (data.parent == null) {
return soft ? null : data
}
data = data.parent
}
}
Metadata
Metadata
Assignees
Type
Projects
Status
Todo