Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 package com.github.rosjava.rosjava_extras.hokuyo.scip20;
00018
00022 public class TmException extends RuntimeException {
00023
00024 public TmException(String status) {
00025 super(getMessage(status));
00026 }
00027
00028 private static String getMessage(String status) {
00029 if (status.equals("01")) {
00030 return "Invalid control code.";
00031 }
00032 if (status.equals("04")) {
00033 return "Adjust mode is off when requested for time.";
00034 }
00035
00036 return "Unknown status code: " + status;
00037 }
00038 }