Name

NoSuchFieldException

Synopsis

This exception signals that the specified field does not exist in the specified class.

java.lang.NoSuchFieldException

Figure 10-43. java.lang.NoSuchFieldException

public class NoSuchFieldException extends Exception {
// Public Constructors
     public NoSuchFieldException( );  
     public NoSuchFieldException(String s);  
}

Thrown By

Class.{getDeclaredField( ), getField( )}

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.