better esceptions for framework module