Como emitir erro em java

System.err.println("Your Error message");
Lwazi Ncube