Sys LastException Message Example
This example shows you how to catch the exception that occurs in a viper.
Smartsite SXML | Copy Code |
---|---|
{itemdata.field(asdasdasd, error='oops: type=' + sys.lastexception.type() + ', message=' + sys.lastexception.message())} |
Example Result | Copy Code |
---|---|
oops: type=Smartsite.Base.SmartsiteException, message=The field 'asdasdasd' could not be loaded for item 25127 of Content Type 'SMX'. |