<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>winebarrel</author_name>
  <author_url>https://blog.hatena.ne.jp/winebarrel/</author_url>
  <blog_title>so what</blog_title>
  <blog_url>https://so-wh.at/</blog_url>
  <categories>
    <anon>DESIGN</anon>
    <anon>JAVA</anon>
  </categories>
  <description>Oracleのエラーコードごとに例外を作って、エラー発生時、コードに対応する例外を投げさせる。 データベースを更新するとき、事前に整合性をチェックするのはめんどいので、とりあえず更新してみて、整合性に問題があればそのとき対応しようというアプローチ。 デメリットは…スピード？Oracleにエラー判定をさせるので、この設計を嫌がる人はいるかも。 OracleException Oracle用の例外。一意制約、参照整合性制約以外のエラーはこの例外が投げられる。 package oraerr.exception;import java.sql.SQLException;public class Ora…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fso-wh.at%2Fentry%2F20041014%2Fp2&quot; title=&quot; Oracleのエラーコードごとに例外を作る - so what&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2004-10-14 00:00:01</published>
  <title> Oracleのエラーコードごとに例外を作る</title>
  <type>rich</type>
  <url>https://so-wh.at/entry/20041014/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
