This commit is contained in:
30
packages/java/dev/kreuzberg/KreuzbergRsException.java
generated
Normal file
30
packages/java/dev/kreuzberg/KreuzbergRsException.java
generated
Normal file
@@ -0,0 +1,30 @@
|
||||
// This file is auto-generated by alef — DO NOT EDIT.
|
||||
// alef:hash:4e15143f4af1ae8bafbdb1506ef057da924484c66a19483966333558ad437e75
|
||||
// To regenerate: alef generate
|
||||
// To verify freshness: alef verify --exit-code
|
||||
// Issues & docs: https://github.com/kreuzberg-dev/alef
|
||||
package dev.kreuzberg;
|
||||
|
||||
/** Exception thrown by KreuzbergRs. */
|
||||
@SuppressWarnings("checkstyle:LineLength")
|
||||
public class KreuzbergRsException extends Exception {
|
||||
/** The error code. */
|
||||
private final int code;
|
||||
|
||||
/** Creates a new KreuzbergRsException. */
|
||||
public KreuzbergRsException(final int code, final String message) {
|
||||
super(message);
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
/** Creates a new KreuzbergRsException with a cause. */
|
||||
public KreuzbergRsException(final String message, final Throwable cause) {
|
||||
super(message, cause);
|
||||
this.code = -1;
|
||||
}
|
||||
|
||||
/** Returns the error code. */
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user