2619 |
|
|
2620 |
// unknown controller type |
// unknown controller type |
2621 |
default: |
default: |
2622 |
throw gig::Exception("Unknown leverage controller type."); |
decodedcontroller.type = leverage_ctrl_t::type_none; |
2623 |
|
decodedcontroller.controller_number = 0; |
2624 |
|
printf("Warning: Unknown leverage controller type (0x%x).\n", EncodedController); |
2625 |
|
break; |
2626 |
} |
} |
2627 |
return decodedcontroller; |
return decodedcontroller; |
2628 |
} |
} |
6476 |
// *************** Exception *************** |
// *************** Exception *************** |
6477 |
// * |
// * |
6478 |
|
|
6479 |
Exception::Exception(String Message) : DLS::Exception(Message) { |
Exception::Exception() : DLS::Exception() { |
6480 |
|
} |
6481 |
|
|
6482 |
|
Exception::Exception(String format, ...) : DLS::Exception() { |
6483 |
|
va_list arg; |
6484 |
|
va_start(arg, format); |
6485 |
|
Message = assemble(format, arg); |
6486 |
|
va_end(arg); |
6487 |
|
} |
6488 |
|
|
6489 |
|
Exception::Exception(String format, va_list arg) : DLS::Exception() { |
6490 |
|
Message = assemble(format, arg); |
6491 |
} |
} |
6492 |
|
|
6493 |
void Exception::PrintMessage() { |
void Exception::PrintMessage() { |