Announcement

Collapse
No announcement yet.

throw new error() in beforeSave

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • throw new error() in beforeSave

    Maybe I'm missing something here but is there any reason why I cannot throw an error in the beforeSave hook???

    thanks in advance!
    Scott

  • #2
    Hello
    default exception works good (throw new \Exception("Test error", 400)
    also you can use one of \Espo\Core\Exceptions\

    Comment


    • #3
      Many thanks for your prompt reply!
      best regards
      Scott

      Comment

      Working...
      X