1 package SQL::Translator::Role::Error;
3 use Sub::Quote qw(quote_sub);
9 default => quote_sub(q{ '' }),
13 my ($orig, $self) = (shift, shift);
15 # Emulate horrible Class::Base API
17 my $errref = do { no strict 'refs'; \${"${self}::ERROR"} };
18 return $$errref unless @_;
23 return $self->$orig unless @_;