inherit to StandardError class instead of Exception. minor refatoring