<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kwatch</author_name>
  <author_url>https://blog.hatena.ne.jp/kwatch/</author_url>
  <blog_title>kなんとかの日記</blog_title>
  <blog_url>https://kwatch.hatenadiary.org/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>Python で SyntaxError を自前で raise するには次のようにする。 raise SyntaxError(&quot;エラーメッセージ&quot;, (ファイル名, 行番号, カラム桁数, ソース行)) やってみる。 &gt;&gt;&gt; raise SyntaxError(&quot;ERROR MESSAGE&quot;, ('foo.py', 123, 2, 'x = 999')) Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; File &quot;foo.py&quot;, line 123 x = 999 ^ SyntaxError: ERR…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkwatch.hatenadiary.org%2Fentry%2F20100413%2F1271112685&quot; title=&quot; Python で SyntaxError を自前で投げる - kなんとかの日記&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>2010-04-13 07:51:25</published>
  <title> Python で SyntaxError を自前で投げる</title>
  <type>rich</type>
  <url>https://kwatch.hatenadiary.org/entry/20100413/1271112685</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
