X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB.pm;h=a59fd6fdf503059f05878178fa3524795750f792;hb=feb6f563968f53e59511578429b1dd61fda52008;hp=d20846670ec668b12d6f69883a682e528d61058d;hpb=fbc8b54802ceaec680e0c86a7ac99dfd286848d8;p=kivitendo-erp.git diff --git a/SL/DB.pm b/SL/DB.pm index d20846670..a59fd6fdf 100644 --- a/SL/DB.pm +++ b/SL/DB.pm @@ -205,7 +205,7 @@ within another C, whereas L can not. =item Return values C adopts the behaviour of C in that it returns the -result of the inner block, and C if an error occured. This way you can +result of the inner block, and C if an error occurred. This way you can use the same pattern you would normally use with C for C: @@ -229,7 +229,7 @@ from proper exception handling. C only gobbles up exceptions that are used to signal an error in the transaction, and returns undef on those. All other exceptions -bubble out of the transaction like normal, so that it is transparent to typoes, +bubble out of the transaction like normal, so that it is transparent to typos, runtime exceptions and other generally wanted things. If you just use the snippet above, your code will catch everything related to