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:
Pedro Lopes 2023-04-20 07:34:11 -03:00 committed by GitHub
parent db4e6d5e47
commit e80848fdc8
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,7 @@
package com.baeldung.lombok.standardexception;
import lombok.experimental.StandardException;
@StandardException
public class CustomException extends NumberFormatException {
}

View File

@ -0,0 +1,11 @@
package com.baeldung.lombok.standardexception;
public class CustomNumberFormatException extends NumberFormatException {
public CustomNumberFormatException() {
super();
}
public CustomNumberFormatException(String s) {
super(s);
}
}