Skip to content

Method: create(String)

1: package de.fhdw.wtf.common.exception.walker;
2:
3: public class InvalidThrowException extends Exception {
4:         
5:         private static final long serialVersionUID = 0;
6:         
7:         private InvalidThrowException(final String taskToString) {
8:                 super(de.fhdw.wtf.common.constants.walker.ExceptionConstants.WRONG_THROWING_DECLARATION + taskToString);
9:         }
10:         
11:         public static InvalidThrowException create(final String taskToString) {
12:                 return new InvalidThrowException(taskToString);
13:         }
14: }