Tabnine Logo
IllegalArgumentException.printStackTrace
Code IndexAdd Tabnine to your IDE (free)

How to use
printStackTrace
method
in
java.lang.IllegalArgumentException

Best Java code snippets using java.lang.IllegalArgumentException.printStackTrace (Showing top 20 results out of 5,652)

origin: Bilibili/DanmakuFlameMaster

public static int getNativeConfig(Bitmap.Config config) {
  try {
    if (nativeIntField == null) {
      return 0;
    }
    return nativeIntField.getInt(config);
  } catch (IllegalArgumentException e) {
    e.printStackTrace();
  } catch (IllegalAccessException e) {
    e.printStackTrace();
  }
  return 0;
}
origin: chrisbanes/PhotoView

  @Override
  public boolean onInterceptTouchEvent(MotionEvent ev) {
    try {
      return super.onInterceptTouchEvent(ev);
    } catch (IllegalArgumentException e) {
      e.printStackTrace();
      return false;
    }
  }
}
origin: RobotiumTech/robotium

  private Object getValue(Field field) {
    if (field == null) {
      return null;
    }
    Object obj = null;
    try {
      obj = field.get(object);
    } catch (IllegalArgumentException e) {
      e.printStackTrace();
    } catch (IllegalAccessException e) {
      e.printStackTrace();
    }
    return obj;
  }
}
origin: apache/zookeeper

static private InputArchive createArchive(InputStream in, String format)
throws IOException {
  Method factory = (Method) archiveFactory.get(format);
  if (factory != null) {
    Object[] params = { in };
    try {
      return (InputArchive) factory.invoke(null, params);
    } catch (IllegalArgumentException ex) {
      ex.printStackTrace();
    } catch (InvocationTargetException ex) {
      ex.printStackTrace();
    } catch (IllegalAccessException ex) {
      ex.printStackTrace();
    }
  }
  return null;
}
/**
origin: apache/zookeeper

static private OutputArchive createArchive(OutputStream out,
    String format)
    throws IOException {
  Method factory = (Method) archiveFactory.get(format);
  if (factory != null) {
    Object[] params = { out };
    try {
      return (OutputArchive) factory.invoke(null, params);
    } catch (IllegalArgumentException ex) {
      ex.printStackTrace();
    } catch (InvocationTargetException ex) {
      ex.printStackTrace();
    } catch (IllegalAccessException ex) {
      ex.printStackTrace();
    }
  }
  return null;
}
/**
origin: linlinjava/litemall

@ExceptionHandler(IllegalArgumentException.class)
@ResponseBody
public Object badArgumentHandler(IllegalArgumentException e) {
  e.printStackTrace();
  return ResponseUtil.badArgumentValue();
}
origin: smuyyh/BookReader

  @Override
  public boolean onInterceptTouchEvent(MotionEvent ev) {
    try {
      return super.onInterceptTouchEvent(ev);
    } catch (IllegalArgumentException e) {
      e.printStackTrace();
      return false;
    }
  }
}
origin: chentao0707/SimplifyReader

@Override
public boolean onInterceptTouchEvent(MotionEvent ev) {
  if (!isLocked) {
    try {
      return super.onInterceptTouchEvent(ev);
    } catch (IllegalArgumentException e) {
      e.printStackTrace();
      return false;
    }
  }
  return false;
}
origin: jeasonlzy/ImagePicker

@Override
public boolean onTouchEvent(MotionEvent ev) {
  try {
    return super.onTouchEvent(ev);
  } catch (IllegalArgumentException ex) {
    ex.printStackTrace();
  }
  return false;
}
origin: jeasonlzy/ImagePicker

  @Override
  public boolean onInterceptTouchEvent(MotionEvent ev) {
    try {
      return super.onInterceptTouchEvent(ev);
    } catch (IllegalArgumentException ex) {
      ex.printStackTrace();
    }
    return false;
  }
}
origin: com.h2database/h2

/**
 * Get a boolean property value from a properties object.
 *
 * @param prop the properties object
 * @param key the key
 * @param def the default value
 * @return the value if set, or the default value if not
 */
public static boolean getBooleanProperty(Properties prop, String key,
    boolean def) {
  try {
    return Utils.parseBoolean(prop.getProperty(key, null), def, true);
  } catch (IllegalArgumentException e) {
    e.printStackTrace();
    return def;
  }
}
origin: jaydenxiao2016/AndroidFire

  @Override
  public boolean onInterceptTouchEvent(MotionEvent ev) {
    try {
      return super.onInterceptTouchEvent(ev);
    } catch (IllegalArgumentException ex) {
      ex.printStackTrace();
    }
    return false;
  }
}
origin: jaydenxiao2016/AndroidFire

@Override
public boolean onTouchEvent(MotionEvent ev) {
  try {
    return super.onTouchEvent(ev);
  } catch (IllegalArgumentException ex) {
    ex.printStackTrace();
  }
  return false;
}
origin: Rukey7/MvpApp

@Override
public boolean onTouchEvent(MotionEvent ev) {
  try {
    return super.onTouchEvent(ev);
  } catch (IllegalArgumentException ex) {
    ex.printStackTrace();
  }
  return false;
}
origin: Rukey7/MvpApp

  @Override
  public boolean onInterceptTouchEvent(MotionEvent ev) {
    try {
      return super.onInterceptTouchEvent(ev);
    } catch (IllegalArgumentException ex) {
      ex.printStackTrace();
    }
    return false;
  }
}
origin: RobotiumTech/robotium

/**
 * Set a value to a field 
 * 
 * @param value the value to set
 */

public void in(Object value) {
  Field field = getField();
  try {
    field.set(object, value);
  } catch (IllegalArgumentException e) {
    e.printStackTrace();
  } catch (IllegalAccessException e) {
    e.printStackTrace();
  }
}
origin: abel533/Mapper

@Override
public void addMappedStatement(MappedStatement ms) {
  try {
    super.addMappedStatement(ms);
    //没有任何配置时,使用默认配置
    if (this.mapperHelper == null) {
      this.mapperHelper = new MapperHelper();
    }
    this.mapperHelper.processMappedStatement(ms);
  } catch (IllegalArgumentException e) {
    //这里的异常是导致 Spring 启动死循环的关键位置,为了避免后续会吞异常,这里直接输出
    e.printStackTrace();
    throw new RuntimeException(e);
  }
}
origin: abel533/Mapper

@Override
public void addMappedStatement(MappedStatement ms) {
  try {
    super.addMappedStatement(ms);
    //没有任何配置时,使用默认配置
    if (this.mapperHelper == null) {
      this.mapperHelper = new MapperHelper();
    }
    this.mapperHelper.processMappedStatement(ms);
  } catch (IllegalArgumentException e) {
    //这里的异常是导致 Spring 启动死循环的关键位置,为了避免后续会吞异常,这里直接输出
    e.printStackTrace();
    throw new RuntimeException(e);
  }
}
origin: azkaban/azkaban

 private void failIfNotException(final Props props) {
  try {
   PropsUtils.resolveProps(props);
   Assert.fail();
  } catch (final UndefinedPropertyException e) {
   e.printStackTrace();
  } catch (final IllegalArgumentException e) {
   e.printStackTrace();
  }
 }
}
origin: neo4j/neo4j

@Test
public void extensionShouldHavePublicNoArgConstructor()
{
  KernelExtensionFactory<?> instance = null;
  try
  {
    instance = newInstance();
  }
  catch ( IllegalArgumentException failure )
  {
    failure.printStackTrace();
    fail( "Contract violation: extension class must have public no-arg constructor (Exception in stderr)" );
  }
  assertNotNull( instance );
}
java.langIllegalArgumentExceptionprintStackTrace

Popular methods of IllegalArgumentException

  • <init>
    Constructs a new exception with the specified cause and a detail message of (cause==null ? null : c
  • getMessage
  • initCause
  • toString
  • getLocalizedMessage
  • getStackTrace
  • setStackTrace
  • getCause
  • addSuppressed
  • fillInStackTrace
  • getSuppressed
  • getSuppressed

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (Timer)
  • getSystemService (Context)
  • requestLocationUpdates (LocationManager)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • ImageIO (javax.imageio)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now