代码搜索:try
找到约 10,000 项符合「try」的源代码
代码结果 10,000
www.eeworm.com/read/471612/1427048
java~2~ databasemanager.java~2~
package flight.assist;
import java.sql.*;
public class DataBaseManager {
Connection con;
ResultSet rs;
Statement stmt;
public DataBaseManager() {
try {
String url = "jdbc
www.eeworm.com/read/471038/1434212
java modifyldapname.java
import javax.naming.ldap.*;
import javax.naming.*;
/*
* Shows ways of modifying an LdapName
*
*/
public class ModifyLdapName {
public static void main(String args[]) {
try {
www.eeworm.com/read/471038/1434844
java knockknockserver.java
import java.net.*;
import java.io.*;
public class KnockKnockServer {
public static void main(String[] args) throws IOException {
ServerSocket serverSocket = null;
try {
www.eeworm.com/read/471038/1434860
java cat.java
import java.io.*;
public class Cat {
public static void concatenate(String fileName) {
RandomAccessFile raf = null;
String line = null;
try {
raf = new Random
www.eeworm.com/read/471038/1434908
java filewriter.java
import java.io.*;
public class FileWriter {
public static void main(String[] args) {
try {
long dataPosition = 0; //to be determined later
int data = 123;
RandomAccessFile
www.eeworm.com/read/470720/1445068
c catch10.c
// Test that we notice unfortunate handler ordering.
struct A { };
struct B: public A { };
struct C: private A { };
void f();
void g()
{
try { f(); }
catch (...) { } // ERROR - ... followed by
www.eeworm.com/read/470720/1445506
c init7.c
// simplified from testcase in Windows Developer Journal,
// submitted by eyal.ben-david@aks.com
// The initialization of a static local variable must be retried if a
// previous try finished by thro
www.eeworm.com/read/470720/1448171
c eb66.c
#include
#include
int bar ()
{
throw 100;
}
int main ()
{
int i = 0;
try
{
i = bar ();
}
catch (...)
{
}
// std::cout
www.eeworm.com/read/470720/1451553
c 20020109-1.c
/* This testcase ICEd when 2 different successors of a basic block
were successfully threaded and try_forward_edges was not expecting
that. */
typedef struct A
{
struct A *s, *t;
unsigned
www.eeworm.com/read/470693/1457014
c catch10.c
// Test that we notice unfortunate handler ordering.
struct A { };
struct B: public A { };
struct C: private A { };
void f();
void g()
{
try { f(); }
catch (...) { } // ERROR - ... followed by