throwReturn function

String throwReturn(
  1. String message
)

Implementation

String throwReturn(String message) {
  if (message.startsWith("Error:")) {
    throw message;
  } else {
    return message;
  }
}