Ví dụ về việc sử dụng Exception trong Tiếng việt và bản dịch của chúng sang Tiếng anh

{-}
  • Colloquial category close
  • Ecclesiastic category close
  • Computer category close
Có hai cách xử lý exception trong Java.
There are two types of exceptions in Java.
Trong trường hợp này bạn sẽ nhận được Exception.
In that case you too get an exemption.
Các Exception trong C được biểu diễn bởi các lớp.
In C all the exceptions are represented by a class.
Ví dụ sau sẽ tạo một exception.
The following, for example, will result in an exception.
Throw new Exception(" Không thể cập nhật dữ liệu");
Throw new LogicException('Could not open file for writing');
Combinations with other parts of speech
Sử dụng với danh từ
Lệnh try- except này bắt tất cả exception mà xuất hiện.
This kind of a try-except statement catches all the exceptions that occur.
Exception Class cơ bản của mọi ngoại lệ.
Exception The Exception class is the base class of all exceptions..
Chuyện gì xảy ra với đối tượng Exception sau khi exception được sử lý?
What will happen to the Exception object after exception handling?
Tuy nhiên, nếu exception kích hoạt, một exception được" throw".
However if the exception triggers, an exception is"thrown".
Bạn nên ghi nhớ điều gì trong khi tạo Exception cho riêng mình trong Java?
What things should be kept in mind while creating your own exceptions in Java?
Với Engine Exception mới, các đối tượng sẽ không mở rộng Exception Base Class.
The new EngineException objects does not extend the exception Base Class.
StandardError Lớp cơ sở của tất cả exception có sẵn ngoại trừ StopIteration và SystemExit.
The base class for all built-in exceptions except StopIteration and SystemExit.
Lớp Exception có hai lớp con chính là: lớp IOException và lớp RuntimeException.
The Exception class has two main subclasses: IOException class and RuntimeException Class.
Trong mỗi khối catch có thểkhai báo cho biết loại exception nào chúng ta muốn giải quyết.
By tailoring the catch block(s),we can effectively declare what types of exceptions we want to handle.
Ví dụ: IOException, SQLException,… Checked exception được kiểm tra tại thời gian biên dịch.
IOException, SQLException, etc. Checked exceptions are checked at compile-time.
Điều này đảm bảo khả năng tương thích ngược vàcác kết quả từ hai kiểu exception khác nhau trong việc quản lý lỗi: truyền thống và exceptions.
This makes sure that backwards compatibility and results from two distinct exceptions in error handling such as traditional and error exceptions.
Với Engine Exception mới, các đối tượng sẽ không mở rộng Exception Base Class.
The newest EngineException object does not spread to the Exception Base Class.
Cú pháp ngôn ngữ trong Free Pascal tương thích tốt với TP 7.0 cũng như các phiên bản Delphi khác( Class,RTTI, Exception, Ansistring, Widestring, giao diện).
The language syntax is semantically compatible with TP 7.0 as well as most versions of Delphi(classes,rtti, exceptions, ansistrings).
Unchecked Exception không được kiểm tra tại compile- time, thay vào đó chúng được kiểm tra tại runtime.
Unchecked exceptions are not checked at compile-time rather they are checked at runtime.
Nếu constructor này không ném một exception, kết nối là thành công và Client được kết nối tới Server.
If this constructor does not throw an exception, the connection is successful and the client is connected to the server.
Std:: bad exception Đây là thiết bị hữu ích để xử lý Unexpected Exception trong một chương trình C++.
Std:: bad exception This is useful device to handle unexpected exceptions in a C++ program.
Nếu bạn cần cung cấp trải nghiệm tốt hơn,bạn có thể rescue và handle exception đó trong action của controller hoặc sử dụng rescue from ở cấp class.
If you need to provide a better experience,you can rescue and handle that exception in the controller action or use rescue_from at the class level.
Std:: runtime error Một exception mà theo lý thuyết không thể được phát hiện bởi việc đọc code.
Std:: runtime error It is an exception that cannot be detected by reading a code.
Một Exception có thể được ném, hoặc bởi được khởi tạo hoặc một Exception mà bạn vừa bắt, bởi sử dụng từ khóa throw.
An exception can be thrown, either a newly instantiated one or an exception that you just caught, by using throw keyword.
Nếu phương thức của lớp cha không khai báo một exception: phương thức ghi đè của lớp con không thể khai báo Checked Exception nhưng có thể khai báo Unchecked Exception.
If the superclass method does not declare any exception, then subclass overridden method cannot declare checked exceptions but it can declare unchecked exceptions.
Đối tượng Exception này mang thông tin về lỗi bao gồm kiểu và trạng thái của chương trình khi sảy ra lỗi.
The exception object contains information about the error, including its type andthe state of the program when the error occurred.
Nếu muốn viết ngoại lệ checked exception, tự động được xử lý bởi Handle hoặc Declare Rule, bạn cần phải mở rộng lớp Exception.
If you want to write a checked exception that is automatically enforced by the Handle or Declare Rule, you need to extend the Exception class.
Nếu một exception không bị chặn bởi bất kì lệnh catch nào vì không có lệnh nào có kiểu phù hợp, hàm đặc biệt terminate sẽ được gọi.
If an exception is not caught by any catch statement because there is no catch statement with a matching type, the special function terminate will be called.
Mỗi hàm phải chỉ ra được exception nào không được xử lý, vì vậy người gọi hàm đó có thể bảo vệ nó dựa vào các exception có thể xảy ra.
Each method must explicitly specify which exceptions does not handle, so the callers of that method can guard against possible exceptions.
Ruby không tạo ra Exception nếu nhiều hơn một phương thức khởi tạo được khai báo, mà sẽ sử dụng phương thức khởi tạo cuối cùng.
Ruby does not generate an exception if more than one initialize method is declared, but only the last initialize method is used.
Kết quả: 461, Thời gian: 0.0191
S

Từ đồng nghĩa của Exception

Truy vấn từ điển hàng đầu

Tiếng việt - Tiếng anh