Skip to content

使用默认报错信息会有问题吗 #159

Description

@FjHe

问题:执行sql的实际报错不会回到上下文,by design?


如果sql执行失败,则在这里抛出,message是默认ErrorCode.SQL_EXECUTION_FAILED.getDefaultMessage()。

然后在这里被捕获,则报错内容只有ErrorCode.SQL_EXECUTION_FAILED.getDefaultMessage(),

if (current instanceof BusinessException businessException) {

最后回到智能体上下文的只有 ErrorCode.SQL_EXECUTION_FAILED.getDefaultMessage(),不太能够指引问题。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions