mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-02 16:04:20 +01:00
Remove unused method
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
package org.github.tursodatabase.utils;
|
||||
|
||||
import static org.github.tursodatabase.utils.ByteArrayUtils.utf8ByteBufferToString;
|
||||
|
||||
import java.sql.SQLException;
|
||||
|
||||
import org.github.tursodatabase.LimboErrorCode;
|
||||
import org.github.tursodatabase.annotations.Nullable;
|
||||
import org.github.tursodatabase.exceptions.LimboException;
|
||||
|
||||
import java.sql.SQLException;
|
||||
|
||||
import static org.github.tursodatabase.utils.ByteArrayUtils.utf8ByteBufferToString;
|
||||
|
||||
public class LimboExceptionUtils {
|
||||
/**
|
||||
* Throws formatted SQLException with error code and message.
|
||||
@@ -38,18 +38,4 @@ public class LimboExceptionUtils {
|
||||
|
||||
return new LimboException(msg, code);
|
||||
}
|
||||
|
||||
/**
|
||||
* Ensures that the provided object is not null.
|
||||
*
|
||||
* @param object the object to check for nullity
|
||||
* @param message the message to include in the exception if the object is null
|
||||
*
|
||||
* @throws IllegalArgumentException if the provided object is null
|
||||
*/
|
||||
public static void requireNonNull(Object object, String message) {
|
||||
if (object == null) {
|
||||
throw new IllegalArgumentException(message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user