package org.codesharp.traffic;

public class Asserter {
	public static RuntimeException exception(String msg) {
		return new RuntimeException(msg);
	}
	
	public static RuntimeException unsupported(String msg) {
		return exception(String.format("unsupported: %s", msg));
	}
	
	public static void throwUnsupported(String msg) {
		throw unsupported(msg);
	}
	
	public static void throwUnsupportedCommand(byte cmd) {
		throwUnsupported(String.format("command=%s", cmd));
	}
	
	public static Object throwIfOutgoingNotExists(Object msg, Object id) {
		if (msg == null)
			throw exception(String.format("outgoing not exists: %s", id));
		return msg;
	}
	
}

@@ -182,38 +182,38 @@
 ion unsupported(
-String
+Object
  msg) %7B%0A%09%09return
@@ -305,22 +305,22 @@
 pported(
-String
+Object
  msg) %7B%0A

update Asserter.unsupported