Skip to content

Commit c88b2e5

Browse files
committed
remove unused error
1 parent 46cb68a commit c88b2e5

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

dbos/errors.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ type DBOSErrorCode int
88
const (
99
ConflictingIDError DBOSErrorCode = iota + 1 // Workflow ID conflicts or duplicate operations
1010
InitializationError // DBOS context initialization failures
11-
WorkflowFunctionNotFound // Workflow function not registered
1211
NonExistentWorkflowError // Referenced workflow does not exist
1312
ConflictingWorkflowError // Workflow with same ID already exists with different parameters
1413
WorkflowCancelled // Workflow was cancelled during execution
@@ -68,18 +67,6 @@ func newInitializationError(message string) *DBOSError {
6867
}
6968
}
7069

71-
func newWorkflowFunctionNotFoundError(workflowID, message string) *DBOSError {
72-
msg := fmt.Sprintf("Workflow function not found for workflow ID %s", workflowID)
73-
if message != "" {
74-
msg += ": " + message
75-
}
76-
return &DBOSError{
77-
Message: msg,
78-
Code: WorkflowFunctionNotFound,
79-
WorkflowID: workflowID,
80-
}
81-
}
82-
8370
func newNonExistentWorkflowError(workflowID string) *DBOSError {
8471
return &DBOSError{
8572
Message: fmt.Sprintf("workflow %s does not exist", workflowID),

0 commit comments

Comments
 (0)