Skip to content
Snippets Groups Projects
Commit c208b26d authored by Danny Auble's avatar Danny Auble
Browse files

BGQ - Added new error codes to the handler functions

parent 4c90953e
No related branches found
No related tags found
No related merge requests found
......@@ -66,6 +66,10 @@ extern int bridge_handle_database_errors(
case bgsched::DatabaseErrors::ConnectionError:
error("%s: Can't connect to the database!", function);
break;
case bgsched::DatabaseErrors::UnexpectedError:
error("%s: UnexpectedError returned from the database!",
function);
break;
default:
error("%s: Unexpected Database exception value %d",
function, err);
......@@ -150,6 +154,9 @@ extern int bridge_handle_input_errors(const char *function, const uint32_t err,
case bgsched::InputErrors::InvalidNodeBoardCount:
error("%s: Invalid NodeBoard count.", function);
break;
case bgsched::InputErrors::InvalidNodeBoardPosition:
error("%s: Invalid NodeBoard position.", function);
break;
case bgsched::InputErrors::InvalidMidplanes:
error("%s: Invalid midplanes given.", function);
break;
......@@ -251,6 +258,9 @@ extern int bridge_handle_runtime_errors(const char *function,
case bgsched::RuntimeErrors::AuthorityError:
error("%s: Authority Error.", function);
break;
case bgsched::RuntimeErrors::HardwareInUseError:
error("%s: Hardware in use Error.", function);
break;
default:
error("%s: Unexpected Runtime exception value %d.",
function, err);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment