Overview

Namespaces

  • SKJ
    • AppException
      • HTTP
      • Logic
      • Runtime

Exceptions

  • AbstractContainerException
  • AbstractDateTimeException
  • AbstractHttpException
  • AbstractValidationException
  • HttpException
  • LogicException
  • RuntimeException
  • Overview
  • Namespace
  • Class

Class AbstractDateTimeException

日時エラー実行例外の抽象クラス

日時に関する事により処理が失敗した場合に使用する例外です

◆詳細◆

  • このクラスは抽象クラスです
Exception
Extended by SKJ\AppException implements SKJ\AppExceptionInterface uses SKJ\AppExceptionMethods
Extended by SKJ\AppException\RuntimeException
Extended by SKJ\AppException\AbstractDateTimeException

Direct known subclasses

SKJ\AppException\Runtime\DurationException, SKJ\AppException\Runtime\ExpiryException, SKJ\AppException\Runtime\UnavailableServiceException
Namespace: SKJ\AppException
Package: SKJ\AppException
Copyright: 2019 Seikouhou.
License: MIT
Author: y3high y3public@49364.net
Version: 0.8.0
Since: Class available since Release 0.8.0
Located at exceptions/AbstractDateTimeException.php
Methods summary
public SKJ\AppException\AbstractDateTimeException
# setDateTime( string $dateTime )

日時を設定する

日時を設定する

日時解釈できない文字列が渡された場合は設定されない

Parameters

$dateTime
strtotime()関数が解釈できる日時形式で期限を指定

Returns

SKJ\AppException\AbstractDateTimeException
自分自身を返す

Api

public integer|string|false
# getDateTime( string|null $format = null )

日時を取得する

日時を取得する

日時が未設定の場合は2038-01-09 03:14:07のunixタイムを返す

Parameters

$format
date()関数に準ずる日付フォーマット、未指定時はunixタイムで返す

Returns

integer|string|false
引数の日付フォーマットに従った形式の期限、もしくはunixタイム、日付フォーマットが間違っている場合は偽を返す

Api

Methods inherited from SKJ\AppException
__construct(), getCallerVars(), getGlobalVars()
Methods inherited from Exception
__toString(), __wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()
Methods inherited from SKJ\AppExceptionInterface
disableSkipContainer(), enableSkipContainer(), forge(), getBaseExceptionCode(), getCallQueue(), getClass(), getExceptionLog(), getFields(), getFuncArgsInCurrentContext(), getFunction(), getFunctionInCurrentContext(), getLineInCurrentContext(), getOriginalClassName(), getOriginalException(), getStatusCode(), isExtension(), renew(), resetFilter(), setCode(), setFields(), setFile(), setFilter(), setLine(), setMessage(), setSortOrder(), setStatusCode(), wasCreatedInCurrentContext()
Methods inherited from IteratorAggregate
getIterator()
Methods used from SKJ\AppExceptionMethods
disableSkipContainer(), enableSkipContainer(), forge(), getBaseExceptionCode(), getCallQueue(), getClass(), getExceptionLog(), getFields(), getFuncArgsInCurrentContext(), getFunction(), getFunctionInCurrentContext(), getLineInCurrentContext(), getOriginalClassName(), getOriginalException(), getStatusCode(), isExtension(), renew(), resetFilter(), setCode(), setFields(), setFile(), setFilter(), setLine(), setMessage(), setSortOrder(), setStatusCode(), wasCreatedInCurrentContext()
Constants inherited from SKJ\AppException
OPT_CALLER_VARS_SNAPSHOT, OPT_GLOBAL_VARS_SNAPSHOT
Constants inherited from SKJ\AppExceptionInterface
SORT_ORDER_ASC, SORT_ORDER_DESC
Properties inherited from SKJ\AppException\RuntimeException
$defCode, $defMessage, $iteratorSortOrder, $messageTemplate, $statusCode
Properties inherited from SKJ\AppException
$enableCallerVarsSnapShot, $enableGlobalVarsSnapShot
Properties inherited from Exception
$code, $file, $line, $message
API documentation generated by ApiGen