modified exception classes for generfication