BAEL-6291: @StandardException Annotation in Lombok (#13772)
* custom exception class * exception in vanilla java * Revert "exception in vanilla java" This reverts commit c1a47b95c558a2eb2e9cf782e633658cee08d05a. * adding vanilla java exception
This commit is contained in:
parent
db4e6d5e47
commit
e80848fdc8
|
@ -0,0 +1,7 @@
|
|||
package com.baeldung.lombok.standardexception;
|
||||
|
||||
import lombok.experimental.StandardException;
|
||||
|
||||
@StandardException
|
||||
public class CustomException extends NumberFormatException {
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
package com.baeldung.lombok.standardexception;
|
||||
|
||||
public class CustomNumberFormatException extends NumberFormatException {
|
||||
public CustomNumberFormatException() {
|
||||
super();
|
||||
}
|
||||
|
||||
public CustomNumberFormatException(String s) {
|
||||
super(s);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue