Throw custom error in AccumulatorWrapper#get and AccumulatorWrapper#set