Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public enum CustomConnectorErrorType implements ErrorTypeDefinition<CustomConnectorErrorType> {
CUSTOM_ERROR_1, CUSTOM_ERROR_2, CUSTOM_ERROR_3;
private ErrorTypeDefinition<? extends Enum<?>> parent;
CustomConnectorErrorType() {
}
CustomConnectorErrorType(ErrorTypeDefinition<? extends Enum<?>> parent) {
this.parent = parent;
}
@Override
public Optional<ErrorTypeDefinition<? extends Enum<?>>> getParent() {
return Optional.ofNullable(parent);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.