delve/service/dap/error_ids.go
Eli Bendersky 23b8e59ab9
service/dap: Add panic guard to DAP handlers (#1895)
* Panic guard for DAP request handling

* Use GetSeq

* Re-vendor new version of go-dap

* Remove comment

* Update error message

* Reuse er.Message in Format
2020-02-25 21:00:54 -08:00

17 lines
573 B
Go

package dap
// Unique identifiers for messages returned for errors from requests.
const (
UnsupportedCommand int = 9999
InternalError int = 8888
// The values below come from the vscode-go debug adaptor.
// Although the spec says they should be unique, the adaptor
// reuses 3000 for launch, attach and program exit failures.
// TODO(polina): confirm if the extension expects specific ids
// for specific cases, and we must match the existing adaptor
// or if these codes can evolve.
FailedToContinue = 3000
// Add more codes as we support more requests
)