refine exception class in addMultiPorts()
[racktables] / wwwroot / inc / ophandlers.php
index b464eab145ea9c5c1df8b8345b670d622a473ca3..bd75cf211da7811df9be239b21b55aeca4788fc0 100644 (file)
@@ -870,8 +870,7 @@ function addMultiPorts ()
                                );
                                break;
                        default:
-                               throw new InvalidRequestArgException ('format', $format);
-                               break;
+                               throw new RackTablesError ("unknown data format '${format}'", RackTablesError::INTERNAL);
                }
        }
        // Create ports, if they don't exist.