Bitwig Studio Control Surface API  4.0.1
OscInvalidArgumentTypeException.java
1 package com.bitwig.extension.api.opensoundcontrol;
2 
3 import java.lang.reflect.Method;
4 
5 public class OscInvalidArgumentTypeException extends RuntimeException
6 {
7  public OscInvalidArgumentTypeException(final Object arg)
8  {
9  super(arg.getClass().getName() + " (" + arg.toString() + ") is not a supported type for OSC messages arguments");
10  }
11 
12  public OscInvalidArgumentTypeException(final Class<?> type)
13  {
14  super(type.getName() + " is not a supported type for OSC messages arguments");
15  }
16 
17  public OscInvalidArgumentTypeException(final Class<?> type, final Method method)
18  {
19  super("Unsupported argument type found in method " + method + ": " + type.getName());
20  }
21 }