String or binary data would be truncated.
case a_var
when TYPE_A then do_type_a_thing
when TYPE_B then do_type_b_thing
else raise 'unknown type'
end
case a_var
when TYPE_A then do_type_a_thing
when TYPE_B then do_type_b_thing
else raise "unknown type <#{a_var.inspect}>" end