throw exception
... throw (new SomeProblem("Problembeskrivelse")); ... class SomeProblem extends Exception{ public SomeProblem(String problem){ super(problem); } } // end SomeProblem