File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed
include/RhythmGameUtilities/Enums Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ std::string ToString(Difficulty difficulty)
34
34
return " Hard" ;
35
35
case Expert:
36
36
return " Expert" ;
37
+ default :
38
+ throw std::invalid_argument (" Unknown Difficulty" );
37
39
}
38
40
}
39
41
Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ std::string ToString(NamedSection namedSection)
27
27
return " SyncTrack" ;
28
28
case Events:
29
29
return " Events" ;
30
+ default :
31
+ throw std::invalid_argument (" Unknown NamedSection" );
30
32
}
31
33
}
32
34
Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ std::string ToString(TypeCode typeCode)
34
34
return " N" ;
35
35
case EventMarker:
36
36
return " E" ;
37
+ default :
38
+ throw std::invalid_argument (" Unknown TypeCode" );
37
39
}
38
40
}
39
41
You can’t perform that action at this time.
0 commit comments