Either make your return type nullable, or use the ...
# getting-started
m
Either make your return type nullable, or use the elvis operator (
?:
) to return a default value or to throw an exception.