question: private static void printErrMsg ( int err , String uname ) { switch ( err ) { case ServerErr . SUCCESS : break ; case ConsistencyErr . CHECK_PASSED : break ; case ClientUtils . INTERNAL_CLIENT_ERR : printErr ( "Some internal client error occurred while processing user " + uname + ". Check the logs for details." ) ; break ; case ServerErr . INTERNAL_SERVER_ERR : printErr ( "The server experienced some internal error. Current user: " + uname ) ; break ; case ServerErr . NAME_EXISTS_ERR : printErr ( "Couldn't register the name " + uname + " because it already exists." ) ; break ; case ServerErr . NAME_NOT_FOUND_ERR : printErr ( "Couldn't find the name " + uname + "." ) ; break ; case ServerErr . MALFORMED_CLIENT_MSG_ERR : printErr ( "The server received a malformed message for user " + uname ) ; break ; case ServerErr . MALFORMED_SERVER_MSG_ERR : printErr ( "Received a malformed server message. Current user: " + uname ) ; break ; case ServerErr . SIGNED_CHANGE_VERIF_ERR : printErr ( "The server could not verify the signed data change for user " + uname + "." ) ; break ; case ServerErr . SERVER_ERR : printErr ( "Some other server error occurred. Current user: " + uname ) ; break ; case ConsistencyErr . BAD_MAPPING_ERR : printErr ( "Mapping inconsistent with tree root for user " + uname + "." ) ; break ; case ConsistencyErr . UNEXPECTED_KEY_ERR : printErr ( "Unexpected key for user " + uname + "." ) ; break ; case ConsistencyErr . BAD_STR_ERR : printErr ( "Inconsistent signed tree roots. Current user: " + uname ) ; break ; case ConsistencyErr . BAD_SERVER_SIG_ERR : printErr ( "Could not verify the server's identity. Current user: " + uname ) ; break ; case ConsistencyErr . KEYSTORE_ERR : printErr ( "Could not find the private or public key. Current user: " + uname ) ; break ; case ConsistencyErr . DISALLOWED_OP_ERR : printErr ( "Client " + uname + " tried to perform a forbidden operation" ) ; break ; default : printErr ( "Some unknown server error occurred: " + err ) ; break ; } }
target:  Prints an error message for the given user and the given error code.