replaced generic exception catch with ASException