BAEL-6291: @StandardException Annotation in Lombok (#13772)
* custom exception class
* exception in vanilla java
* Revert "exception in vanilla java"
This reverts commit c1a47b95c5.
* adding vanilla java exception
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user