Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.9.0)

E52932-01


oracle.adfinternal.model.logging.contextual
Class ErrorHelper

java.lang.Object
  extended by oracle.adfinternal.model.logging.contextual.ErrorHelper


public final class ErrorHelper
extends java.lang.Object

Utility class to help with validation of method arguments and facilitate the use of transltable error message.

Since:
11.1.1.7.2

Nested Class Summary
static class ErrorHelper.ErrorMessage
          Common error messages

 

Method Summary
static void validateNotNull(java.lang.String argName, java.lang.Object argValue)
          Validate that the given argument is not null
static void validateNotNullOrEmpty(java.lang.String argName, java.util.Collection argValue)
          Validate that the given argument is not null or empty
static void validateNotNullOrEmpty(java.lang.String argName, java.lang.Object[] argValue)
           
static void validateNotNullOrEmpty(java.lang.String argName, java.lang.String argValue)
          Validate that the given argument is not null or empty

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

validateNotNullOrEmpty

public static void validateNotNullOrEmpty(java.lang.String argName,
                                          java.lang.Object[] argValue)

validateNotNullOrEmpty

public static void validateNotNullOrEmpty(java.lang.String argName,
                                          java.util.Collection argValue)
Validate that the given argument is not null or empty
Parameters:
argName - The tested argument name or label
argValue - The tested argument value
Throws:
java.lang.IllegalArgumentException - if the tested argument is null or empty

validateNotNullOrEmpty

public static void validateNotNullOrEmpty(java.lang.String argName,
                                          java.lang.String argValue)
Validate that the given argument is not null or empty
Parameters:
argName - The tested argument name or label
argValue - The tested argument value
Throws:
java.lang.IllegalArgumentException - if the tested argument is null or empty

validateNotNull

public static void validateNotNull(java.lang.String argName,
                                   java.lang.Object argValue)
Validate that the given argument is not null
Parameters:
argName - The tested argument name or label
argValue - The tested argument value
Throws:
java.lang.IllegalArgumentException - if the tested argument is null

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.9.0)

E52932-01


Copyright © 1997, 2015, Oracle. All rights reserved.