Skip to content
Snippets Groups Projects
Commit f517d86d authored by Nelson Tavares de Sousa's avatar Nelson Tavares de Sousa
Browse files

added error codes to the stages

parent b6de7545
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ public class InitialElementProducer<T> extends AbstractProducerStage<T> {
public InitialElementProducer(final Iterable<T> elements) {
if (elements == null) {
throw new IllegalArgumentException("The given iterable must not be null");
throw new IllegalArgumentException("4002 - The given iterable must not be null.");
}
this.elements = elements;
}
......
......@@ -37,7 +37,7 @@ public final class ObjectProducer<T> extends AbstractProducerStage<T> {
*/
public ObjectProducer(final long numInputObjects, final ConstructorClosure<T> inputObjectCreator) {
if (numInputObjects < 0) {
throw new IllegalArgumentException("numInputObjects must be non-negative.");
throw new IllegalArgumentException("4001 - numInputObjects must be non-negative.");
}
this.numInputObjects = numInputObjects;
this.inputObjectCreator = inputObjectCreator;
......
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