public void addErrorPage ( final WebAppErrorPage errorPage ) { NullArgumentException . validateNotNull ( errorPage , "Error page" ) ; if ( errorPage . getErrorCode ( ) == null && errorPage . getExceptionType ( ) == null ) { throw new NullPointerException ( "At least one of error type or exception code must be set" ) ; } errorPages . add ( errorPage ) ; }
Add an error page .