Skip to content
Snippets Groups Projects
Commit a99db997 authored by ribeaudc's avatar ribeaudc
Browse files

change:

- Put more explicit error messages.

SVN: 3333
parent 63d2fc60
No related branches found
No related tags found
No related merge requests found
......@@ -92,12 +92,12 @@ public final class HCSImageFormattedData extends AbstractFormattedData implement
{
if (channel < 1)
{
throw new IndexOutOfBoundsException(String.format("Channel index starts at 1.", channel));
throw new IndexOutOfBoundsException(String.format("Channel index must start at 1 (given value is %d).", channel));
}
final int channelCount = getChannelCount();
if (channel > channelCount)
{
throw new IndexOutOfBoundsException(String.format("%d > %d", channel, channelCount));
throw new IndexOutOfBoundsException(String.format("Channel index %d exceeds the number of channels %d", channel, channelCount));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment