Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
drexed committed Oct 2, 2024
1 parent 1591055 commit ac13a57
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ A status of `success` is returned even if the command has **NOT** been executed.
| `failure` | **Fault** to stop call execution due to an unsatisfied condition where it blocks proceeding any further. |
| `error` | **Fault** to stop call execution due to a thrown `StandardError` based exception. |

**NOTE:** faults must be manually set in your domain logic via the available
their bang `!` methods, eg:
> [!IMPORTANT]
> Faults must be manually set in your domain logic via the available their bang `!` methods.
```ruby
class CalculatePower < Lite::Command::Base
Expand All @@ -152,6 +152,8 @@ class CalculatePower < Lite::Command::Base
else
ctx.result = ctx.a ** ctx.b
end
rescue DivisionError => e
error!("Cathcing it myself")
end

end
Expand Down

0 comments on commit ac13a57

Please sign in to comment.