Raise exception on incorrect usage of WaveLength