public final class ErrorMessage extends Object implements ServerMessage
The offendingSql will be bound by statement flow, protocol layer will always get null.
| Modifier and Type | Method and Description |
|---|---|
static ErrorMessage |
decode(io.netty.buffer.ByteBuf buf)
Decode error message from a
ByteBuf. |
boolean |
equals(Object o) |
int |
getCode() |
String |
getMessage() |
@Nullable String |
getSqlState() |
int |
hashCode() |
ErrorMessage |
offendedBy(@Nullable String sql)
Creates a new
ErrorMessage with specific offending statement. |
io.r2dbc.spi.R2dbcException |
toException() |
io.r2dbc.spi.R2dbcException |
toException(@Nullable String sql) |
String |
toString() |
public io.r2dbc.spi.R2dbcException toException()
public io.r2dbc.spi.R2dbcException toException(@Nullable
@Nullable String sql)
public int getCode()
@Nullable public @Nullable String getSqlState()
public String getMessage()
public ErrorMessage offendedBy(@Nullable @Nullable String sql)
ErrorMessage with specific offending statement.sql - offending statement.this if sql is null, otherwise a new ErrorMessage.public static ErrorMessage decode(io.netty.buffer.ByteBuf buf)
ByteBuf.buf - the ByteBuf.Copyright © 2018–2023 asyncer.io. All rights reserved.