Commons Lang has it. Or you could throw an UnsupportedOperationException
.
More Related Contents:
- Why are Exceptions not Checked in .NET?
- Causes of getting a java.lang.VerifyError
- How to use wait and notify in Java without IllegalMonitorStateException?
- Concurrent Modification Exception : adding to an ArrayList
- Should a retrieval method return ‘null’ or throw an exception when it can’t produce the return value? [closed]
- java.rmi.ServerException: RemoteException occurred in server thread (ClassNotFoundException)
- Can I catch multiple Java exceptions in the same catch clause?
- Differences between Exception and Error
- What could cause java.lang.reflect.InvocationTargetException?
- Why doesn’t Java allow to throw a checked exception from static initialization block?
- Access private field of another object in same class
- Java / Android – How to print out a full stack trace?
- tomcat server fails to start the server and application in STS [duplicate]
- Eclipse – java.lang.ClassNotFoundException
- What throws an IOException in Java?
- When should an IllegalArgumentException be thrown?
- Can we use “return” in finally block [duplicate]
- PrintWriter and PrintStream never throw IOExceptions
- Rethrowing exceptions in Java without losing the stack trace
- Java uncaught global exception handler
- Unhandled Exception in Java
- Analogues of Java and .NET technologies/frameworks
- How can I catch Event Dispatch Thread (EDT) exceptions?
- Java exception handling
- How do I stop stacktraces truncating in logs
- How can I call .NET code from Java?
- Java’s Virtual Machine and CLR
- Should methods that throw RuntimeException indicate it in method signature?
- Unable to run JUnit test with PowerMockRunner
- maximum size of java class / exception table