C Creating Custom Exceptions In Java