Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ const INVALID_BOOKMARK_MIXTURE_CODE =
'Neo.ClientError.Transaction.InvalidBookmarkMixture'
const AUTHORIZATION_EXPIRED_CODE =
'Neo.ClientError.Security.AuthorizationExpired'
const INVALID_ARGUMENT_ERROR = 'Neo.ClientError.Statement.ArgumentError'
const INVALID_REQUEST_ERROR = 'Neo.ClientError.Request.Invalid'
const STATEMENT_TYPE_ERROR = 'Neo.ClientError.Statement.TypeError'

const SYSTEM_DB_NAME = 'system'
const DEFAULT_DB_NAME = null
Expand Down Expand Up @@ -703,7 +706,10 @@ function _isFailFastError (error) {
return [
DATABASE_NOT_FOUND_CODE,
INVALID_BOOKMARK_CODE,
INVALID_BOOKMARK_MIXTURE_CODE
INVALID_BOOKMARK_MIXTURE_CODE,
INVALID_ARGUMENT_ERROR,
INVALID_REQUEST_ERROR,
STATEMENT_TYPE_ERROR
].includes(error.code)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1669,6 +1669,9 @@ describe.each([
'Neo.ClientError.Database.DatabaseNotFound',
'Neo.ClientError.Transaction.InvalidBookmark',
'Neo.ClientError.Transaction.InvalidBookmarkMixture',
'Neo.ClientError.Request.Invalid',
'Neo.ClientError.Statement.ArgumentError',
'Neo.ClientError.Statement.TypeError',
'Neo.ClientError.Security.Forbidden',
'Neo.ClientError.Security.IWontTellYou'
])('with "%s"', errorCode => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ const INVALID_BOOKMARK_MIXTURE_CODE =
'Neo.ClientError.Transaction.InvalidBookmarkMixture'
const AUTHORIZATION_EXPIRED_CODE =
'Neo.ClientError.Security.AuthorizationExpired'
const INVALID_ARGUMENT_ERROR = 'Neo.ClientError.Statement.ArgumentError'
const INVALID_REQUEST_ERROR = 'Neo.ClientError.Request.Invalid'
const STATEMENT_TYPE_ERROR = 'Neo.ClientError.Statement.TypeError'

const SYSTEM_DB_NAME = 'system'
const DEFAULT_DB_NAME = null
Expand Down Expand Up @@ -703,7 +706,10 @@ function _isFailFastError (error) {
return [
DATABASE_NOT_FOUND_CODE,
INVALID_BOOKMARK_CODE,
INVALID_BOOKMARK_MIXTURE_CODE
INVALID_BOOKMARK_MIXTURE_CODE,
INVALID_ARGUMENT_ERROR,
INVALID_REQUEST_ERROR,
STATEMENT_TYPE_ERROR
].includes(error.code)
}

Expand Down